Replace pthread and dl linking with cmake-based variables

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/76/head
Michele Calgaro 2 months ago
parent e1cfe3e781
commit faf60d6ff4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -120,7 +120,7 @@ if( WITH_LIBVISUAL )
tde_message_fatal( "SDL is required, but not found on your system" ) tde_message_fatal( "SDL is required, but not found on your system" )
endif ( ) endif ( )
set ( SDL_INCLUDE_DIRS /usr/include/SDL ) set ( SDL_INCLUDE_DIRS /usr/include/SDL )
set ( SDL_LIBRARIES SDL pthread ) set ( SDL_LIBRARIES SDL ${CMAKE_THREAD_LIBS_INIT} )
endif( ) endif( )
pkg_search_module( LIBVISUAL libvisual-0.4 ) pkg_search_module( LIBVISUAL libvisual-0.4 )

@ -10,9 +10,6 @@ add_definitions( -DTHREADSAFE=1 -DHAVE_USLEEP=1 )
##### sqlite (static) ##### sqlite (static)
tde_add_library( sqlite STATIC_PIC tde_add_library( sqlite STATIC_PIC
SOURCES sqlite3.c
SOURCES LINK ${CMAKE_DL_LIBS}
sqlite3.c
LINK
dl
) )

Loading…
Cancel
Save