Wie man nlohmann/json ohne sudo installiert

Auch ohne Root-Berechtigungen ist es wirklich einfach, nlohmann/json auf deinem System zu installieren.

In diesem Beispiel installieren wir es nach $HOME/usr.

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

Ähnliche Beiträge nach Kategorie: C/C++