diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2012-06-12 03:46:45 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-12 03:46:45 +0200 |
commit | 06fabbf18e468c28039f7a87449ab73c55d2a9b6 (patch) | |
tree | 5b37678cb7928a0f4eeb3015b780306572b890d1 /ConfigureChecks.cmake | |
parent | 97e01d2455005789586efcad40b01bf4884c8e91 (diff) | |
download | amarok-06fabbf18e468c28039f7a87449ab73c55d2a9b6.tar.gz amarok-06fabbf18e468c28039f7a87449ab73c55d2a9b6.zip |
Fix SDL detection on old distros (no pkgconfig file)
Thanks to Francois Andriot for the patch!
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 090c73b7..63d85389 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -106,7 +106,12 @@ if( WITH_LIBVISUAL ) pkg_search_module( SDL sdl ) if( NOT SDL_FOUND ) - tde_message_fatal( "SDL are required, but not found on your system" ) + 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 ) |