mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
FindSDL: Allow if() to dereference SDL_INCLUDE_DIR for matching
Otherwise the syntax is incorrect when the variable is empty.
This commit is contained in:
1 parent
62b1998403
commit
67516fb57e
1 file changed
+1
-1
@@ -106,7 +106,7 @@ find_library(SDL_LIBRARY_TEMP
|
||||
)
|
||||
|
||||
if(NOT SDL_BUILDING_LIBRARY)
|
||||
if(NOT ${SDL_INCLUDE_DIR} MATCHES ".framework")
|
||||
if(NOT SDL_INCLUDE_DIR MATCHES ".framework")
|
||||
# Non-OS X framework versions expect you to also dynamically link to
|
||||
# SDLmain. This is mainly for Windows and OS X. Other (Unix) platforms
|
||||
# seem to provide SDLmain for compatibility even though they don't
|
||||
|
||||
Reference in new issue
Block a user