summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2015-01-07 22:46:56 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-08 19:47:39 (GMT)
commit67516fb57e7f0781c79801efdcae8f76bb1adaae (patch)
tree078fb2157f7cb2010b0ca8e801f87e51797877c8
parent62b19984039235d5325ee1ad6a7643a4ccd696a8 (diff)
downloadCMake-67516fb57e7f0781c79801efdcae8f76bb1adaae.zip
CMake-67516fb57e7f0781c79801efdcae8f76bb1adaae.tar.gz
CMake-67516fb57e7f0781c79801efdcae8f76bb1adaae.tar.bz2
FindSDL: Allow if() to dereference SDL_INCLUDE_DIR for matching
Otherwise the syntax is incorrect when the variable is empty.
-rw-r--r--Modules/FindSDL.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSDL.cmake b/Modules/FindSDL.cmake
index 3905e54..45ca1d4 100644
--- a/Modules/FindSDL.cmake
+++ b/Modules/FindSDL.cmake
@@ -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