summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-12-27 14:15:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-12-27 20:18:12 +0900
commitba1b04e7b9895c496429e4ca4fd7a05c77ac31a3 (patch)
tree614465a70e06c2a20540e72453f1c8a0bab3b65b
parent144d7196a07de8abf47505b6fdd98dda0ec24d5c (diff)
downloadtdeaddons-ba1b04e7b9895c496429e4ca4fd7a05c77ac31a3.tar.gz
tdeaddons-ba1b04e7b9895c496429e4ca4fd7a05c77ac31a3.zip
Replace pthread linking with cmake-based variable
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit dc774c76f7d02762ce71f45c538c98caeae4e5c4)
-rw-r--r--CMakeLists.txt1
-rw-r--r--ConfigureChecks.cmake2
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 )