From faf60d6ff4ed9bbde43e467712e90769c2a5f548 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 27 Dec 2024 11:46:25 +0900 Subject: Replace pthread and dl linking with cmake-based variables Signed-off-by: Michele Calgaro --- ConfigureChecks.cmake | 2 +- amarok/src/sqlite/CMakeLists.txt | 7 ++----- 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} ) -- cgit v1.2.1