From c4593fe6c210c8c9dd0d7effac468c7cabb7307e Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 24 Oct 2019 20:01:25 +0200 Subject: [PATCH] Updated CMake file for unbound --- github | 2 +- native/dns/CMakeLists.txt | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/github b/github index a1490ab..14645dc 160000 --- a/github +++ b/github @@ -1 +1 @@ -Subproject commit a1490ab0d97f65e27845fec6daf88be8ed6d1014 +Subproject commit 14645dca78396c915ad4ad122d532f24fdfd2969 diff --git a/native/dns/CMakeLists.txt b/native/dns/CMakeLists.txt index eae7454..0f6ec25 100644 --- a/native/dns/CMakeLists.txt +++ b/native/dns/CMakeLists.txt @@ -4,16 +4,14 @@ set(SOURCE_FILES ${SOURCE_FILES} src/resolver.cpp src/types.cpp src/response.cpp find_package(Libevent REQUIRED) include_directories(${LIBEVENT_INCLUDE_DIRS}) -message("EVENT: ${LIBEVENT_INCLUDE_DIRS}") -#find_package(Unbound REQUIRED) -#include_directories(${Unbound_INCLUDE_DIR}) +find_package(unbound REQUIRED) add_nodejs_module(${MODULE_NAME} binding.cc ${SOURCE_FILES}) -target_link_libraries(${MODULE_NAME} /home/wolverindev/TeaSpeak-Client/third_party/unbound/build/lib/libunbound.a ${LIBEVENT_STATIC_LIBRARIES} pthread) +target_link_libraries(${MODULE_NAME} unbound::static ${LIBEVENT_STATIC_LIBRARIES} pthread) add_executable(DNS-Test ${SOURCE_FILES} test/main.cpp) -target_link_libraries(DNS-Test /home/wolverindev/TeaSpeak-Client/third_party/unbound/build/lib/libunbound.a ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread) +target_link_libraries(DNS-Test unbound::static ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread) add_executable(DNS-Test2 test/crash.cpp) -target_link_libraries(DNS-Test2 /home/wolverindev/TeaSpeak-Client/third_party/unbound/build/lib/libunbound.a ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread) \ No newline at end of file +target_link_libraries(DNS-Test2 unbound::static ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread) \ No newline at end of file