Skip to content

Instantly share code, notes, and snippets.

@YarikTH
Created January 24, 2019 12:12
Show Gist options
  • Select an option

  • Save YarikTH/3535d4ebd8b31c84405d09d8d78ed1e7 to your computer and use it in GitHub Desktop.

Select an option

Save YarikTH/3535d4ebd8b31c84405d09d8d78ed1e7 to your computer and use it in GitHub Desktop.
Show all cmake variables with PREFIX
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
if("${_variableName}" MATCHES "^PREFIX_*")
message(STATUS "${_variableName}=${${_variableName}}")
endif()
endforeach()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment