aboutsummaryrefslogtreecommitdiff
path: root/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 18:54:55 +0200
commit9130e411e12d923b33c14a09c21b2e23fae231ba (patch)
tree7a9b75de6c9ce3461d5c0c9184bedac03f0ead6c /cmake
parentremove pthreads, successfully tested on gcc 4.9.1 without pthreads (diff)
downloadmonero-9130e411e12d923b33c14a09c21b2e23fae231ba.tar.xz
fixed unbound static lib on mingw as libunbound.dll.a
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 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()