[Lldb-commits] [lldb] 209ec8e - [lldb] Silence CMake warnings about missing FindFBSDVMCore
Michał Górny via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 16 09:02:00 PST 2021
Author: Michał Górny
Date: 2021-12-16T18:01:51+01:00
New Revision: 209ec8e2eebbd2612ed8f7ee394a6dc043624ab4
URL: https://github.com/llvm/llvm-project/commit/209ec8e2eebbd2612ed8f7ee394a6dc043624ab4
DIFF: https://github.com/llvm/llvm-project/commit/209ec8e2eebbd2612ed8f7ee394a6dc043624ab4.diff
LOG: [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
Added:
Modified:
lldb/cmake/modules/LLDBConfig.cmake
Removed:
################################################################################
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 687c754326bd..01c501a7f717 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)
More information about the lldb-commits
mailing list