Skip to content

Instantly share code, notes, and snippets.

@dvigne
Forked from drautb/CMake: Variable Dump
Created March 15, 2021 18:49
Show Gist options
  • Save dvigne/df02676fd8e4c5bbe9de3943ff5c1dfd to your computer and use it in GitHub Desktop.
Save dvigne/df02676fd8e4c5bbe9de3943ff5c1dfd to your computer and use it in GitHub Desktop.
This snippet will dump all CMake variables to the build output
get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment