mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
build libunbound from external if no local libunbound or for static builds
This commit is contained in:
+11
-12
@@ -92,8 +92,17 @@ if (UNIX AND NOT APPLE)
|
||||
find_package(Threads)
|
||||
endif()
|
||||
|
||||
# Find unbound - don't move this to the end, cmake is weird about this
|
||||
find_package(Unbound REQUIRED)
|
||||
add_subdirectory(external)
|
||||
|
||||
# Final setup for miniupnpc
|
||||
if(UPNP_STATIC)
|
||||
add_definitions("-DUPNP_STATIC")
|
||||
else()
|
||||
add_definitions("-DUPNP_DYNAMIC")
|
||||
include_directories(${UPNP_INCLUDE})
|
||||
endif()
|
||||
|
||||
# Final setup for libunbound
|
||||
include_directories(${UNBOUND_INCLUDE})
|
||||
|
||||
if(MSVC)
|
||||
@@ -215,15 +224,5 @@ else()
|
||||
add_custom_target(version ALL)
|
||||
endif()
|
||||
|
||||
add_subdirectory(external)
|
||||
|
||||
# Final setup for miniupnpc
|
||||
if(UPNP_STATIC)
|
||||
add_definitions("-DUPNP_STATIC")
|
||||
else()
|
||||
add_definitions("-DUPNP_DYNAMIC")
|
||||
include_directories(${UPNP_INCLUDE})
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(tests)
|
||||
|
||||
Reference in New Issue
Block a user