CMake Tips & Tricks
Published in _drafts
Print all the environment variables accessible from your CMakeLists.txt
If you are using CLion as your IDE you may wander what the environment actually contains. The following snippet will print it to the terminal:
execute_process(COMMAND "${CMAKE_COMMAND}" "-E" "environment")