Created
July 3, 2013 20:11
-
-
Save drautb/5922368 to your computer and use it in GitHub Desktop.
This snippet will dump all CMake variables to the build output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_cmake_property(_variableNames VARIABLES) | |
foreach (_variableName ${_variableNames}) | |
message(STATUS "${_variableName}=${${_variableName}}") | |
endforeach() |
Helpful snippet, thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to remove the "STATUS" to get the output.