Quick regression fix for SDL2 detection.

I only had to add "PATH_SUFFIXES SDL2".
.
include is superfluous
SDL2-2.0 is a distro specific convenience symlink. Use the correct one
as before.
.
I probably did this as an artificial way of disabling pkgconfig when cross
compiling and before disabling pkgconfig for all cross compiling but it's
wrong. I thought I had fixed this already.
This commit is contained in:
Miguel A. Colón Vélez 2014-12-28 12:54:17 -05:00 committed by Gregory Hainaut
parent be1842f4e9
commit c2cba0d4ae
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ check_lib(PORTAUDIO portaudio portaudio.h pa_linux_alsa.h)
check_lib(SOUNDTOUCH SoundTouch soundtouch/SoundTouch.h)
if(SDL2_API)
check_lib(SDL2 SDL2-2.0 SDL.h PATH_SUFFIXES include/SDL2)
check_lib(SDL2 SDL2 SDL.h PATH_SUFFIXES SDL2)
else()
# Tell cmake that we use SDL as a library and not as an application
set(SDL_BUILDING_LIBRARY TRUE)