diff options
author | Chris Robinson <[email protected]> | 2008-12-12 11:09:23 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-12-12 11:09:23 -0800 |
commit | 1acd6da7457378b110df2b53e8ec3cfd00e1a6a9 (patch) | |
tree | 6b8706f7421751382fbfdb046283c85f029d5f27 /CMakeLists.txt | |
parent | 3056f91ec54b2066b0e939ebcb540ca99a256110 (diff) |
Search for SDL.h in addition to SDL/SDL.h
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a87221d..4956329e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,8 +323,11 @@ ENDIF() # Check SDL backend IF(SDL) - CHECK_INCLUDE_FILE(SDL/SDL.h HAVE_SDL_SDL_H) - IF(HAVE_SDL_SDL_H) + CHECK_INCLUDE_FILE(SDL.h HAVE_SDL_H) + IF(NOT HAVE_SDL_H) + CHECK_INCLUDE_FILE(SDL/SDL.h HAVE_SDL_SDL_H) + ENDIF() + IF(HAVE_SDL_H OR HAVE_SDL_SDL_H) CHECK_LIBRARY_EXISTS(SDL SDL_Init "" HAVE_LIBSDL) IF(HAVE_DLFCN_H OR HAVE_LIBSDL) SET(HAVE_SDL 1) |