aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to '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}")