mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-08 20:04:02 +00:00
[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
This commit is contained in:
parent
66bbefeb13
commit
209ec8e2ee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user