From a93f2d8bfe98e2927fc7024973c52062ccd28b30 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 1 Sep 2010 15:15:17 +0200 Subject: build: Fixed pthread detection. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e7c5b6ce..0cd833b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,8 +62,10 @@ else (WITH_GCRYPT) endif (NOT OPENSSL_FOUND) endif(WITH_GCRYPT) -#find out if we have threading available -include(FindThreads) +# Find out if we have threading available +set(CMAKE_THREAD_PREFER_PTHREADS ON) +find_package(Threads) + # config.h checks include(ConfigureChecks.cmake) configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) -- cgit v1.2.3