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 | f8c80f9101ecf1fea12ec6762f06c49022f932b9 (patch) | |
| tree | 02fd096c8a70a9a220b69acdb103cf64331fd6ec /llvm | |
| parent | c8d8653de8a50e335e275ac24b9b0fe5f960a125 (diff) | |
| download | bcm5719-llvm-f8c80f9101ecf1fea12ec6762f06c49022f932b9.tar.gz bcm5719-llvm-f8c80f9101ecf1fea12ec6762f06c49022f932b9.zip | |
[cmake] Add a simple function to dump all variables.
This is useful when debugging CMake problems.
llvm-svn: 313574
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 6e0aacec4a3..5cd20c684f8 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/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}) |

