Skip to content

Instantly share code, notes, and snippets.

@joshuashaffer
Created August 23, 2021 20:56
Show Gist options
  • Save joshuashaffer/807b6a44457856b6f69f71b3e739f587 to your computer and use it in GitHub Desktop.
Save joshuashaffer/807b6a44457856b6f69f71b3e739f587 to your computer and use it in GitHub Desktop.
List all CMake Variables.
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