diff options
Diffstat (limited to 'cmake/ShowCMakeVars.cmake')
-rw-r--r-- | cmake/ShowCMakeVars.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/ShowCMakeVars.cmake b/cmake/ShowCMakeVars.cmake new file mode 100644 index 0000000..de9e2df --- /dev/null +++ b/cmake/ShowCMakeVars.cmake @@ -0,0 +1,15 @@ +function(ShowCMakeVars) + get_cmake_property(_variableNames VARIABLES) + list (SORT _variableNames) + foreach (_variableName ${_variableNames}) + if (ARGV0) + unset(MATCHED) + string(REGEX MATCH ${ARGV0} MATCHED ${_variableName}) + if (NOT MATCHED) + continue() + endif() + endif() + message(STATUS "${_variableName}=${${_variableName}}") + endforeach() +endfunction() + |