1 parent
3851aeb703
commit
053ee5b296
23 files changed
+845
-93
No files matched your search
@@ -64,7 +64,20 @@ if(_void_external_deps)
|
||||
endif()
|
||||
foreach(dep IN LISTS _void_external_deps)
|
||||
if(dep STREQUAL "Boost")
|
||||
find_dependency(Boost REQUIRED COMPONENTS stacktrace_backtrace url)
|
||||
find_dependency(Boost CONFIG REQUIRED COMPONENTS
|
||||
@VOID_BOOST_STACKTRACE_COMPONENT@ url)
|
||||
if(NOT TARGET Boost::headers AND TARGET Boost::boost)
|
||||
add_library(Boost::headers INTERFACE IMPORTED)
|
||||
set_property(TARGET Boost::headers PROPERTY
|
||||
INTERFACE_LINK_LIBRARIES Boost::boost)
|
||||
endif()
|
||||
foreach(_component IN ITEMS beast asio)
|
||||
if(NOT TARGET Boost::${_component} AND TARGET Boost::headers)
|
||||
add_library(Boost::${_component} INTERFACE IMPORTED)
|
||||
set_property(TARGET Boost::${_component} PROPERTY
|
||||
INTERFACE_LINK_LIBRARIES Boost::headers)
|
||||
endif()
|
||||
endforeach()
|
||||
elseif(dep STREQUAL "Sodium")
|
||||
find_dependency(PkgConfig REQUIRED)
|
||||
pkg_check_modules(SODIUM REQUIRED IMPORTED_TARGET libsodium)
|
||||
@@ -75,6 +88,11 @@ foreach(dep IN LISTS _void_external_deps)
|
||||
endif()
|
||||
elseif(dep STREQUAL "LibArchive")
|
||||
find_dependency(LibArchive REQUIRED)
|
||||
elseif(dep STREQUAL "SQLite3")
|
||||
find_dependency(SQLite3 REQUIRED)
|
||||
if(NOT TARGET SQLite3::SQLite3 AND TARGET SQLite::SQLite3)
|
||||
add_library(SQLite3::SQLite3 ALIAS SQLite::SQLite3)
|
||||
endif()
|
||||
elseif(NOT TARGET ${dep})
|
||||
find_dependency(${dep})
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user