From c48a89b1e3f54ff6b8ea3143a24be1068dda1926 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 10 Dec 2024 14:48:36 +0100 Subject: [PATCH] [cmake] add script to dump variables --- cmake/DumpVariables.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cmake/DumpVariables.cmake diff --git a/cmake/DumpVariables.cmake b/cmake/DumpVariables.cmake new file mode 100644 index 000000000..6d5e12120 --- /dev/null +++ b/cmake/DumpVariables.cmake @@ -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()