Look for SDL_gamecontroller.h instead of SDL.h to prevent CMake from

using SDL1 include dirs
This commit is contained in:
Daniel Nagel 2014-09-01 15:47:21 +02:00
parent dbdef45559
commit 1d096f7d02

View File

@ -70,7 +70,7 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
FIND_PATH(SDL2_INCLUDE_DIR SDL.h
FIND_PATH(SDL2_INCLUDE_DIR SDL_gamecontroller.h
HINTS
$ENV{SDL2DIR}
PATH_SUFFIXES include/SDL2 include