How to install nlohmann/json without sudo

Even without root permissions it’s really easy to install nlohmann/json on your system.

In this example, we’ll install it to $HOME/usr.

git clone -b v3.11.3 https://github.com/nlohmann/json.git
cmake -DCMAKE_INSTALL_PREFIX=$HOME/usr .
make -j8 install