This commit adds presets for common use cases, including local and
system installation. It also updates the README to explain the use of
these presets and how they can be used for installation.
If you have CMake 3.21 or greater, you can use the system build preset to
build the package system-wide:
Alternatively, if the CMAKE_PREFIX_PATH environment variable is set to
$HOME/.local, then you can install it locally. This can be set in /etc/profile
or your shell config. This will not affect discovery of packages installed
system-wide.
export CMAKE_PREFIX_PATH="$HOME/.local"
This has the advantage of not
requiring sudo, and matplotplusplus will be installed in $HOME/.local.
This commit adds presets for common use cases, including local and system installation. It also updates the README to explain the use of these presets and how they can be used for installation.
If you have CMake 3.21 or greater, you can use the
system
build preset to build the package system-wide:Alternatively, if the
CMAKE_PREFIX_PATH
environment variable is set to$HOME/.local
, then you can install it locally. This can be set in/etc/profile
or your shell config. This will not affect discovery of packages installed system-wide.This has the advantage of not requiring sudo, and matplotplusplus will be installed in
$HOME/.local
.If you're using a version of CMake too old to support presets, then building with the system preset is equivilant to:
While building with the local preset is equivilant to: