Skip to content

Instantly share code, notes, and snippets.

@sleepdefic1t
Created October 4, 2019 09:03
Show Gist options
  • Save sleepdefic1t/6107a33f9c9c323b5d089ad3c130e7af to your computer and use it in GitHub Desktop.
Save sleepdefic1t/6107a33f9c9c323b5d089ad3c130e7af to your computer and use it in GitHub Desktop.
CMake: Print All Environment Variables

CMake: Print All Environment Variables

get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
    message(STATUS "\n${_variableName}=${${_variableName}}\n")
endforeach()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment