1 parent
fa30098129
commit
8583a479dd
11 files changed
+1763
-129
No files matched your search
@@ -52,6 +52,18 @@ function(void_fetch_dependency DEP_NAME)
|
||||
endif()
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(DEP_NAME STREQUAL "Sodium")
|
||||
if(TARGET Sodium::Sodium)
|
||||
return()
|
||||
endif()
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(SODIUM REQUIRED IMPORTED_TARGET libsodium)
|
||||
add_library(Sodium::Sodium INTERFACE IMPORTED)
|
||||
set_property(TARGET Sodium::Sodium PROPERTY
|
||||
INTERFACE_LINK_LIBRARIES PkgConfig::SODIUM)
|
||||
return()
|
||||
endif()
|
||||
# FIXME: Add if needed external
|
||||
# if(DEP_NAME STREQUAL "glaze")
|
||||
# if(NOT glaze_POPULATED)
|
||||
|
||||
@@ -5,7 +5,15 @@ include(CMakeFindDependencyMacro)
|
||||
set(_void_external_deps "@VOID_EXTERNAL_DEPS_LIST@")
|
||||
foreach(dep IN LISTS _void_external_deps)
|
||||
if(dep STREQUAL "Boost")
|
||||
find_dependency(Boost REQUIRED COMPONENTS stacktrace_backtrace)
|
||||
find_dependency(Boost REQUIRED COMPONENTS stacktrace_backtrace url)
|
||||
elseif(dep STREQUAL "Sodium")
|
||||
find_dependency(PkgConfig REQUIRED)
|
||||
pkg_check_modules(SODIUM REQUIRED IMPORTED_TARGET libsodium)
|
||||
if(NOT TARGET Sodium::Sodium)
|
||||
add_library(Sodium::Sodium INTERFACE IMPORTED)
|
||||
set_property(TARGET Sodium::Sodium PROPERTY
|
||||
INTERFACE_LINK_LIBRARIES PkgConfig::SODIUM)
|
||||
endif()
|
||||
elseif(NOT TARGET ${dep})
|
||||
find_dependency(${dep})
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user