Skip to content

Instantly share code, notes, and snippets.

@drautb
Created July 3, 2013 20:11
This snippet will dump all CMake variables to the build output
get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
@christian-rauch
Copy link

I had to remove the "STATUS" to get the output.

@petrstepanov
Copy link

Helpful snippet, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment