diff options
author | François Andriot <[email protected]> | 2015-08-30 14:34:24 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2015-08-30 14:35:00 +0200 |
commit | d1e0006b3f998b3412a2058669f9b38181c04f47 (patch) | |
tree | bab7fc29f5bca2d8e25f068714f52921e2bf4ec1 | |
parent | 8c17ef893f38d825517ab04207de17ae9dd8f651 (diff) | |
download | tdeaddons-d1e0006b3f998b3412a2058669f9b38181c04f47.tar.gz tdeaddons-d1e0006b3f998b3412a2058669f9b38181c04f47.zip |
Fix FTBFS on RHEL 5 because SDL is not detected
This resolves Bug 2488
Signed-off-by: François Andriot <[email protected]>
(cherry picked from commit 19183b5dcea62a0550ea799c173b988c7354c2f9)
-rw-r--r-- | ConfigureChecks.cmake | 7 |
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 ) |