Skip to content

Instantly share code, notes, and snippets.

@shi-yan
Created July 11, 2019 17:51
Show Gist options
  • Save shi-yan/e7ec250792d8b43ed4b29a649a250abc to your computer and use it in GitHub Desktop.
Save shi-yan/e7ec250792d8b43ed4b29a649a250abc to your computer and use it in GitHub Desktop.
how to print all cmake variables for debugging
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
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