[cmake] add script to dump variables

This commit is contained in:
akallabeth
2024-12-10 14:48:36 +01:00
parent e16085762d
commit c48a89b1e3

View File

@@ -0,0 +1,9 @@
function(dump_cmake_variables)
get_cmake_property(_variableNames VARIABLES)
list(SORT _variableNames)
foreach(_variableName ${_variableNames})
if((NOT DEFINED ARGV0) OR _variableName MATCHES ${ARGV0})
message(STATUS "${_variableName}=${${_variableName}}")
endif()
endforeach()
endfunction()