summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2015-08-30 14:34:24 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-08-30 14:34:24 +0200
commit19183b5dcea62a0550ea799c173b988c7354c2f9 (patch)
treeabb51ee36e943d997229f2253f395eb159db6da9
parent4d976d10e8d99776881152c0911f80890ffba579 (diff)
downloadtdeaddons-19183b5d.tar.gz
tdeaddons-19183b5d.zip
Fix FTBFS on RHEL 5 because SDL is not detected
This resolves Bug 2488 Signed-off-by: François Andriot <francois.andriot@free.fr>
-rw-r--r--ConfigureChecks.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 1fedc9a..f3872b9 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -74,7 +74,12 @@ if( BUILD_NOATUN_PLUGINS )
if( WITH_SDL )
pkg_search_module( SDL sdl )
if( NOT SDL_FOUND )
- tde_message_fatal( "SDL is requested, but was not found on your system" )
+ check_include_file( SDL/SDL.h HAVE_SDL_H )
+ if( NOT HAVE_SDL_H )
+ 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 )
endif( )
endif( WITH_SDL )