diff options
author | Zachary Turner <zturner@google.com> | 2017-09-18 21:52:02 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-09-18 21:52:02 +0000 |
commit | 5f445a03f7c1b28306b137e8be2e8e5bd0f9a1d8 (patch) | |
tree | 6ecdc90be99bd95c3d3c3e499013ea1c9cbfcaaa /cmake | |
parent | d8f94b89b5e8ef242791d9a765718bbe35739606 (diff) | |
download | llvm-5f445a03f7c1b28306b137e8be2e8e5bd0f9a1d8.tar.gz |
[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
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/AddLLVM.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
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}) |