From c722267b9b0d691e1c0af5259db802fe3cc26d0c Mon Sep 17 00:00:00 2001 From: castano Date: Tue, 30 Nov 2010 20:30:11 +0000 Subject: [PATCH] Link against pthreads library on systems that do not include it automatically. Fixes issue 149. --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4a9f376..c0506f8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -107,6 +107,7 @@ FIND_PACKAGE(Qt4) # Threads FIND_PACKAGE(Threads REQUIRED) MESSAGE(STATUS "Use thread library: ${CMAKE_THREAD_LIBS_INIT}") +SET(LIBS ${LIBS} ${CMAKE_THREAD_LIBS_INIT}) # configuration file INCLUDE(CheckIncludeFiles)