Skip to content

Commit

Permalink
[cmake] Add a simple function to dump all variables.
Browse files Browse the repository at this point in the history
This is useful when debugging CMake problems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313574 91177308-0d34-0410-b5e6-96231b3b80d8
Zachary Turner committed Sep 18, 2017
1 parent d8f94b8 commit 5f445a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
@@ -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})

0 comments on commit 5f445a0

Please sign in to comment.