diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | ConfigureChecks.cmake | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cba5a8..3f47fac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ project( tdeaddons ) ##### include essential cmake modules ########### include( FindPkgConfig ) +include( FindThreads ) include( CheckIncludeFile ) include( CheckLibraryExists ) include( CheckSymbolExists ) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 9a1f20c..3f7d582 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -72,7 +72,7 @@ if( BUILD_NOATUN_PLUGINS ) tde_message_fatal( "SDL is requested, but was not found on your system" ) endif ( ) set ( SDL_INCLUDE_DIRS /usr/include/SDL ) - set ( SDL_LIBRARIES SDL pthread ) + set ( SDL_LIBRARIES SDL ${CMAKE_THREAD_LIBS_INIT} ) endif( ) endif( WITH_SDL ) |