By default, we are getting the source code of a library (including CmakeLists.txt) and $REPO/build
executing it in it:
cmake ..
make install
, the cmake
library will be installed on /usr/local/include
and /usr/local/lib
on . This is known as a "partial installation".
If you want to install globally, you need to execute:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make all install
will install the library on /usr/include
and /usr/lib
.