remove pthreads, successfully tested on gcc 4.9.1 without pthreads

This commit is contained in:
Riccardo Spagni 2014-10-02 15:03:27 +02:00
parent 1cf22b27a6
commit 8c37823d45
3 changed files with 16 additions and 12 deletions

View file

@ -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}")