diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-10-06 10:50:49 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-10-06 10:50:52 +0200 |
commit | bbac93f3633793354eefaaba5da69403add425b4 (patch) | |
tree | c501731038ecb2c3f2cb9e1035ff2045b8f368ae | |
parent | Merge pull request #415 (diff) | |
parent | unbound: do not try to link against libevent (diff) | |
download | monero-bbac93f3633793354eefaaba5da69403add425b4.tar.xz |
Merge pull request #419
5d0cb73 unbound: do not try to link against libevent (moneromooo-monero)
-rw-r--r-- | external/unbound/CMakeLists.txt | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/external/unbound/CMakeLists.txt b/external/unbound/CMakeLists.txt index 72e2addd6..47010e1b3 100644 --- a/external/unbound/CMakeLists.txt +++ b/external/unbound/CMakeLists.txt @@ -40,7 +40,7 @@ if (WIN32) set(USE_WINSOCK 1) else () find_package(PkgConfig REQUIRED) - pkg_check_modules(LIBEVENT2 REQUIRED libevent) + set(USE_MINI_EVENT 1) endif () set(RETSIGTYPE void) @@ -181,10 +181,6 @@ set(libunbound_src include_directories("${CMAKE_CURRENT_SOURCE_DIR}") include_directories("${CMAKE_CURRENT_BINARY_DIR}") include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR}) -if (LIBEVENT2_FOUND) - include_directories(SYSTEM ${LIBEVENT2_INCLUDE_DIRS}) - link_directories(${LIBEVENT2_LIBRARY_DIRS}) -endif () add_library(unbound ${common_src} ${sldns_src} @@ -194,11 +190,6 @@ target_link_libraries(unbound LINK_PRIVATE ${OPENSSL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) -if (LIBEVENT2_FOUND) - target_link_libraries(unbound - LINK_PRIVATE - ${LIBEVENT2_LIBRARIES}) -endif () if (WIN32) target_link_libraries(unbound @@ -207,11 +198,6 @@ if (WIN32) ws2_32) endif () -# XXX: Hack for static builds. -set(LIBEVENT2_LIBDIR - "${LIBEVENT2_LIBDIR}" - PARENT_SCOPE) - if (MINGW) # There is no variable for this (probably due to the fact that the pthread # library is implicit with a link in msys). |