summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-12-27 11:46:25 +0900
committerMichele Calgaro <[email protected]>2024-12-27 17:36:20 +0900
commitfaf60d6ff4ed9bbde43e467712e90769c2a5f548 (patch)
tree4cc0fccecbd6e038c410df36a0daa3a0d02edfb7
parente1cfe3e78109e5ce5edcedb243a0be83fabbeea2 (diff)
downloadamarok-faf60d6ff4ed9bbde43e467712e90769c2a5f548.tar.gz
amarok-faf60d6ff4ed9bbde43e467712e90769c2a5f548.zip
Replace pthread and dl linking with cmake-based variables
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--ConfigureChecks.cmake2
-rw-r--r--amarok/src/sqlite/CMakeLists.txt7
2 files changed, 3 insertions, 6 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 23ab2cad..8d0f1fc9 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -120,7 +120,7 @@ if( WITH_LIBVISUAL )
tde_message_fatal( "SDL is required, but 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( )
pkg_search_module( LIBVISUAL libvisual-0.4 )
diff --git a/amarok/src/sqlite/CMakeLists.txt b/amarok/src/sqlite/CMakeLists.txt
index 19f0e46e..0c699d6e 100644
--- a/amarok/src/sqlite/CMakeLists.txt
+++ b/amarok/src/sqlite/CMakeLists.txt
@@ -10,9 +10,6 @@ add_definitions( -DTHREADSAFE=1 -DHAVE_USLEEP=1 )
##### sqlite (static)
tde_add_library( sqlite STATIC_PIC
-
- SOURCES
- sqlite3.c
- LINK
- dl
+ SOURCES sqlite3.c
+ LINK ${CMAKE_DL_LIBS}
)