Link against pthreads library on systems that do not include it automatically. Fixes issue 149.

This commit is contained in:
castano 2010-11-30 20:30:11 +00:00
parent 16c37f6bc7
commit 45ee876783
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -132,6 +132,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)