From 5f445a03f7c1b28306b137e8be2e8e5bd0f9a1d8 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 18 Sep 2017 21:52:02 +0000 Subject: [cmake] Add a simple function to dump all variables. This is useful when debugging CMake problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313574 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/modules/AddLLVM.cmake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmake') diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 6e0aacec4a3..5cd20c684f8 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -1187,6 +1187,13 @@ function(configure_lit_site_cfg input output) 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}) -- cgit v1.2.3