CMake: Is it possible to get the destination install directory from command line?
cmake, installation, linux
Solution
You can affect this at CMake run time by setting the variable `CMAKE_INSTALL_PREFIX`. e.g.
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
Problem
Is it possible to get the destination install directory from command line? I want to be able to execute an install command like this: make install {some destination}