diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-02 13:36:05 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-02 13:40:01 -0800 |
| commit | f83801fb2a4064d666cf8c17d716376a99e4a555 (patch) | |
| tree | 4547dfc29f909353b899abfac6fe78c70ff8a4f4 /lldb/cmake/modules | |
| parent | f38234ed8b579230a3742317ffd5fb95514d9638 (diff) | |
| download | bcm5719-llvm-f83801fb2a4064d666cf8c17d716376a99e4a555.tar.gz bcm5719-llvm-f83801fb2a4064d666cf8c17d716376a99e4a555.zip | |
[lldb/CMake] Print whether an optional dependency was enabled.
Use a status message to convey whether an optional dependency was found
or not. With the auto-detection code it's not longer as simple as
checking the CMake cache.
Diffstat (limited to 'lldb/cmake/modules')
| -rw-r--r-- | lldb/cmake/modules/LLDBConfig.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake index b77880cc0af..52b8257951b 100644 --- a/lldb/cmake/modules/LLDBConfig.cmake +++ b/lldb/cmake/modules/LLDBConfig.cmake @@ -36,19 +36,21 @@ macro(add_optional_dependency variable description package found) set(maybe_required REQUIRED) else() set(find_package FALSE) - set(${variable} FALSE PARENT_SCOPE) + set(${variable} FALSE) endif() if(${find_package}) find_package(${package} ${maybe_required}) set(${variable} "${${found}}") endif() + + message(STATUS "${description}: ${${variable}}") endmacro() -add_optional_dependency(LLDB_ENABLE_LIBEDIT "Enable editline support." LibEdit LibEdit_FOUND) -add_optional_dependency(LLDB_ENABLE_CURSES "Enable curses support." CursesAndPanel CURSESANDPANEL_FOUND) -add_optional_dependency(LLDB_ENABLE_LZMA "Enable LZMA compression support." LibLZMA LIBLZMA_FOUND) -add_optional_dependency(LLDB_ENABLE_LUA "Enable Lua scripting support." Lua LUA_FOUND) +add_optional_dependency(LLDB_ENABLE_LIBEDIT "Enable editline support in LLDB" LibEdit LibEdit_FOUND) +add_optional_dependency(LLDB_ENABLE_CURSES "Enable curses support in LLDB" CursesAndPanel CURSESANDPANEL_FOUND) +add_optional_dependency(LLDB_ENABLE_LZMA "Enable LZMA compression support in LLDB" LibLZMA LIBLZMA_FOUND) +add_optional_dependency(LLDB_ENABLE_LUA "Enable Lua scripting support in LLDB" Lua LUA_FOUND) set(default_enable_python ON) |

