diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-12-16 17:11:07 +0100 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2021-12-16 18:01:51 +0100 |
commit | 209ec8e2eebbd2612ed8f7ee394a6dc043624ab4 (patch) | |
tree | d4847e3d20b89fd1db6321bd6a48adfcf6a4bbe1 /lldb | |
parent | 66bbefeb1389d9fdfc66920d9cfa9b73783ccfc4 (diff) | |
download | llvm-209ec8e2eebbd2612ed8f7ee394a6dc043624ab4.zip llvm-209ec8e2eebbd2612ed8f7ee394a6dc043624ab4.tar.gz llvm-209ec8e2eebbd2612ed8f7ee394a6dc043624ab4.tar.bz2 |
[lldb] Silence CMake warnings about missing FindFBSDVMCore
Pass QUIET to find_package() in order to quiet the warning about missing
FindFBSDVMCore.cmake. FBSDVMCore always provides native CMake config
files, therefore providing a fallback module serves no purpose.
Differential Revision: https://reviews.llvm.org/D115882
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/cmake/modules/LLDBConfig.cmake | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake index 687c754..01c501a 100644 --- a/lldb/cmake/modules/LLDBConfig.cmake +++ b/lldb/cmake/modules/LLDBConfig.cmake @@ -25,7 +25,7 @@ endif() macro(add_optional_dependency variable description package found) cmake_parse_arguments(ARG - "" + "QUIET" "VERSION" "" ${ARGN}) @@ -45,7 +45,11 @@ macro(add_optional_dependency variable description package found) endif() if(${find_package}) - find_package(${package} ${ARG_VERSION} ${maybe_required}) + set(maybe_quiet) + if(ARG_QUIET) + set(maybe_quiet QUIET) + endif() + find_package(${package} ${ARG_VERSION} ${maybe_required} ${maybe_quiet}) set(${variable} "${${found}}") endif() @@ -58,7 +62,7 @@ add_optional_dependency(LLDB_ENABLE_LZMA "Enable LZMA compression support in LLD add_optional_dependency(LLDB_ENABLE_LUA "Enable Lua scripting support in LLDB" LuaAndSwig LUAANDSWIG_FOUND) add_optional_dependency(LLDB_ENABLE_PYTHON "Enable Python scripting support in LLDB" PythonAndSwig PYTHONANDSWIG_FOUND) add_optional_dependency(LLDB_ENABLE_LIBXML2 "Enable Libxml 2 support in LLDB" LibXml2 LIBXML2_FOUND VERSION 2.8) -add_optional_dependency(LLDB_ENABLE_FBSDVMCORE "Enable libfbsdvmcore support in LLDB" FBSDVMCore FBSDVMCore_FOUND) +add_optional_dependency(LLDB_ENABLE_FBSDVMCORE "Enable libfbsdvmcore support in LLDB" FBSDVMCore FBSDVMCore_FOUND QUIET) option(LLDB_USE_SYSTEM_SIX "Use six.py shipped with system and do not install a copy of it" OFF) option(LLDB_USE_ENTITLEMENTS "When codesigning, use entitlements if available" ON) |