aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindUnbound.cmake
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-10-02 15:03:27 +0200
committerRiccardo Spagni <ric@spagni.net>2014-10-02 15:03:27 +0200
commitbba217a2a60ae67bbf1f3052abdf7924f3c95d3d (patch)
treeb47bd200f1a5dcdf23a8c6e43c2ee9c8a5a33bcf /cmake/FindUnbound.cmake
parentsimplewallet ignoring testnet port in RPC mode (diff)
downloadmonero-bba217a2a60ae67bbf1f3052abdf7924f3c95d3d.tar.xz
remove pthreads, successfully tested on gcc 4.9.1 without pthreads
Diffstat (limited to 'cmake/FindUnbound.cmake')
-rw-r--r--cmake/FindUnbound.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/FindUnbound.cmake b/cmake/FindUnbound.cmake
index af3382fff..6c3d15eae 100644
--- a/cmake/FindUnbound.cmake
+++ b/cmake/FindUnbound.cmake
@@ -37,7 +37,11 @@ FIND_PATH(UNBOUND_INCLUDE_DIR
/usr/
)
-find_library(UNBOUND_LIBRARIES unbound)
+if(STATIC)
+ find_library(UNBOUND_LIBRARIES libunbound.a)
+else()
+ find_library(UNBOUND_LIBRARIES unbound)
+endif()
IF(UNBOUND_INCLUDE_DIR)
MESSAGE(STATUS "Found libunbound include (unbound.h) in ${UNBOUND_INCLUDE_DIR}")