CMake: Setting Environment Variables
Temporary Environment Variables
To temporarily set environment variables before running CMake, type the commands in the console. For example:
``` WEB export BOOST_ROOTusrlocal 1 export LD_LIBRARY_PATHusrlocallibLD_LIBRARY_PATH 2 export ```Permanent Environment Variables
To set permanent environment variables, modify the .bashrc
file in your home directory. Add the following lines to the file:
Note:
You do not need to set BOOST_ROOT
. CMake can find Boost in its standard location.
Komentar