aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindUnbound.cmake
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-10-06 15:00:06 +0200
committerRiccardo Spagni <ric@spagni.net>2014-10-06 15:00:06 +0200
commit59172ee125ec916bbd43e97acc18b6aa7354c97a (patch)
tree5e8cd91476489a01e35199602f347305bdfe08de /cmake/FindUnbound.cmake
parentMerge branch 'master' of http://github.com/fluffypony/bitmonero (diff)
downloadmonero-59172ee125ec916bbd43e97acc18b6aa7354c97a.tar.xz
build libunbound from external if no local libunbound or for static builds
Diffstat (limited to '')
-rw-r--r--cmake/FindUnbound.cmake23
1 files changed, 1 insertions, 22 deletions
diff --git a/cmake/FindUnbound.cmake b/cmake/FindUnbound.cmake
index 032bcf45e..9728cd2f0 100644
--- a/cmake/FindUnbound.cmake
+++ b/cmake/FindUnbound.cmake
@@ -37,25 +37,4 @@ FIND_PATH(UNBOUND_INCLUDE_DIR
/usr/
)
-if(STATIC)
- if(MINGW)
- find_library(UNBOUND_LIBRARIES libunbound.dll.a)
- else()
- find_library(UNBOUND_LIBRARIES libunbound.a)
- endif()
-else()
- find_library(UNBOUND_LIBRARIES unbound)
-endif()
-
-IF(UNBOUND_INCLUDE_DIR)
- MESSAGE(STATUS "Found libunbound include (unbound.h) in ${UNBOUND_INCLUDE_DIR}")
- IF(UNBOUND_LIBRARIES)
- MESSAGE(STATUS "Found libunbound library")
- set(UNBOUND_INCLUDE ${UNBOUND_INCLUDE_DIR})
- set(UNBOUND_LIBRARY ${UNBOUND_LIBRARIES})
- ELSE()
- MESSAGE(FATAL_ERROR "${BoldRed}Could not find libunbound library, please make sure you have installed libunbound or libunbound-dev or the equivalent${ColourReset}")
- ENDIF()
-ELSE()
- MESSAGE(FATAL_ERROR "${BoldRed}Could not find libunbound library, please make sure you have installed libunbound or libunbound-dev or the equivalent${ColourReset}")
-ENDIF()
+find_library(UNBOUND_LIBRARIES unbound)