Skip to content

Instantly share code, notes, and snippets.

@rwmyers
Created August 26, 2019 23:32
Show Gist options
  • Select an option

  • Save rwmyers/85e0c3eb9632b2b090bcfe74ae16b077 to your computer and use it in GitHub Desktop.

Select an option

Save rwmyers/85e0c3eb9632b2b090bcfe74ae16b077 to your computer and use it in GitHub Desktop.
print 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