Controls Theory, Programming & Other Stuff
Python love, Matlab hate and random obsessions

CMake Tips & Tricks

Published Sat 20 May 2017 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")
  • Atom Posts Feed

Powered by Pelican