Fix SDL detection on old distros (no pkgconfig file)

Thanks to Francois Andriot for the patch!
(cherry picked from commit 06fabbf18e)
v3.5.13-sru
Slávek Banko 12 years ago
parent 4fe698b281
commit 32dd552dda

@ -106,8 +106,13 @@ if( WITH_LIBVISUAL )
pkg_search_module( SDL sdl )
if( NOT SDL_FOUND )
check_include_file( SDL/SDL.h HAVE_SDL_H )
if( NOT HAVE_SDL_H )
tde_message_fatal( "SDL are required, but not found on your system" )
endif ( )
set ( SDL_INCLUDE_DIRS /usr/include/SDL )
set ( SDL_LIBRARIES SDL pthread )
endif( )
pkg_search_module( LIBVISUAL libvisual-0.4 )
if( LIBVISUAL_FOUND )

Loading…
Cancel
Save