[cmake] Add a simple function to dump all variables.

This is useful when debugging CMake problems.

llvm-svn: 313574
This commit is contained in:
Zachary Turner 2017-09-18 21:52:02 +00:00
parent c8d8653de8
commit f8c80f9101
1 changed files with 7 additions and 0 deletions

View File

@ -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})