summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
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)