1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 11:52:40 +01:00

cmake: SDL2: Fix SDL2 headers detection

We are looking for the SDL.h file inside a SDL2 folder located in the
standard include paths, so the path suffix should be simply SDL2.

The /usr/local/include/SDL2 and /usr/include/SDL2 are standard paths
with the SDL2 suffix, so they can be dropped.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
This commit is contained in:
Paul Cercueil 2020-03-16 19:31:45 +01:00 committed by Anonymous Maarten
parent 6ab92da5b0
commit 528a686f24

View File

@ -70,12 +70,10 @@ find_path(SDL2_INCLUDE_DIR SDL.h
HINTS HINTS
$ENV{SDL2DIR} $ENV{SDL2DIR}
PATH_SUFFIXES PATH_SUFFIXES
include/SDL2 include SDL2
PATHS PATHS
~/Library/Frameworks ~/Library/Frameworks
/Library/Frameworks /Library/Frameworks
/usr/local/include/SDL2
/usr/include/SDL2
/sw # Fink /sw # Fink
/opt/local # DarwinPorts /opt/local # DarwinPorts
/opt/csw # Blastwave /opt/csw # Blastwave