From 51db26e717b158b90e718793bd5075ca7c75c9ce Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 3 Feb 2017 01:06:45 +0000 Subject: [PATCH] Specify libunbound.a only for mac or win. Linux has its own. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 448b97b..6752e6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,8 +93,10 @@ add_library(wallet STATIC IMPORTED) set_property(TARGET wallet PROPERTY IMPORTED_LOCATION ${MONERO_LIBS_DIR}/libwallet.a) -add_library(unbound STATIC IMPORTED) -set_property(TARGET unbound PROPERTY IMPORTED_LOCATION ${MONERO_LIBS_DIR}/libunbound.a) +if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32) + add_library(unbound STATIC IMPORTED) + set_property(TARGET unbound PROPERTY IMPORTED_LOCATION ${MONERO_LIBS_DIR}/libunbound.a) +endif() # include boost headers include_directories(${Boost_INCLUDE_DIRS})