get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
message(STATUS "\n${_variableName}=${${_variableName}}\n")
endforeach()
Created
October 4, 2019 09:03
-
-
Save sleepdefic1t/6107a33f9c9c323b5d089ad3c130e7af to your computer and use it in GitHub Desktop.
CMake: Print All Environment Variables
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment