[llvm] r313574 - [cmake] Add a simple function to dump all variables.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 18 14:52:02 PDT 2017
Author: zturner
Date: Mon Sep 18 14:52:02 2017
New Revision: 313574
URL: http://llvm.org/viewvc/llvm-project?rev=313574&view=rev
Log:
[cmake] Add a simple function to dump all variables.
This is useful when debugging CMake problems.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=313574&r1=313573&r2=313574&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Mon Sep 18 14:52:02 2017
@@ -1187,6 +1187,13 @@ function(configure_lit_site_cfg input ou
endif()
endfunction()
+function(dump_all_cmake_variables)
+ get_cmake_property(_variableNames VARIABLES)
+ foreach (_variableName ${_variableNames})
+ message(STATUS "${_variableName}=${${_variableName}}")
+ endforeach()
+endfunction()
+
function(get_llvm_lit_path base_dir file_name)
cmake_parse_arguments(ARG "ALLOW_EXTERNAL" "" "" ${ARGN})
More information about the llvm-commits
mailing list