Created
January 24, 2019 12:12
-
-
Save YarikTH/3535d4ebd8b31c84405d09d8d78ed1e7 to your computer and use it in GitHub Desktop.
Show all cmake variables with PREFIX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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