aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindUnbound.cmake
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-10-02 15:49:18 +0200
committerRiccardo Spagni <ric@spagni.net>2014-10-02 15:49:18 +0200
commit6b9a7fcd67f1f39ba1a22a39de55ef60ff6dde26 (patch)
tree1d2dd49d68c34902ef1e47f9982ed993c3b23fbb /cmake/FindUnbound.cmake
parentremove pthreads, successfully tested on gcc 4.9.1 without pthreads (diff)
downloadmonero-6b9a7fcd67f1f39ba1a22a39de55ef60ff6dde26.tar.xz
fixed unbound static lib on mingw as libunbound.dll.a
Diffstat (limited to '')
-rw-r--r--cmake/FindUnbound.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/FindUnbound.cmake b/cmake/FindUnbound.cmake
index 6c3d15eae..032bcf45e 100644
--- a/cmake/FindUnbound.cmake
+++ b/cmake/FindUnbound.cmake
@@ -38,7 +38,11 @@ FIND_PATH(UNBOUND_INCLUDE_DIR
)
if(STATIC)
- find_library(UNBOUND_LIBRARIES libunbound.a)
+ if(MINGW)
+ find_library(UNBOUND_LIBRARIES libunbound.dll.a)
+ else()
+ find_library(UNBOUND_LIBRARIES libunbound.a)
+ endif()
else()
find_library(UNBOUND_LIBRARIES unbound)
endif()