mirror of
https://codeberg.org/wownero/onion-wownero-blockchain-explorer.git
synced 2026-10-17 05:41:26 +02:00
Merge pull request #218 from selsta/mac-system-unbound
cmake: fix build with system unbound on mac
This commit is contained in:
+13
-1
@@ -76,8 +76,20 @@ if(APPLE)
|
|||||||
link_directories(/usr/local/lib)
|
link_directories(/usr/local/lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
MESSAGE(STATUS "Looking for libunbound") # FindUnbound.cmake from monero repo
|
||||||
|
|
||||||
|
FIND_PATH(UNBOUND_INCLUDE_DIR
|
||||||
|
NAMES unbound.h
|
||||||
|
PATH_SUFFIXES include/ include/unbound/
|
||||||
|
PATHS "${PROJECT_SOURCE_DIR}"
|
||||||
|
${UNBOUND_ROOT}
|
||||||
|
$ENV{UNBOUND_ROOT}
|
||||||
|
/usr/local/
|
||||||
|
/usr/
|
||||||
|
)
|
||||||
|
|
||||||
find_library (UNBOUND_LIBRARY unbound)
|
find_library (UNBOUND_LIBRARY unbound)
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32 OR (${UNBOUND_LIBRARY} STREQUAL "UNBOUND_LIBRARY-NOTFOUND"))
|
if (WIN32 OR (${UNBOUND_LIBRARY} STREQUAL "UNBOUND_LIBRARY-NOTFOUND"))
|
||||||
add_library(unbound STATIC IMPORTED)
|
add_library(unbound STATIC IMPORTED)
|
||||||
set_property(TARGET unbound PROPERTY IMPORTED_LOCATION ${MONERO_BUILD_DIR}/external/unbound/libunbound.a)
|
set_property(TARGET unbound PROPERTY IMPORTED_LOCATION ${MONERO_BUILD_DIR}/external/unbound/libunbound.a)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user