Replace pthread linking with cmake-based variable

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

@ -25,6 +25,7 @@ project( tdeaddons )
##### include essential cmake modules ###########
include( FindPkgConfig )
include( FindThreads )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckSymbolExists )

@ -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 )

Loading…
Cancel
Save