summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-13 12:26:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-10-13 12:26:05 (GMT)
commit30fe9f024353dcb9799680e1da73d21745a53b3d (patch)
tree137e5d1bcf02550bc6fc7310d9b75342298d3be6 /Modules
parentbd74517325fddc0592973f26634c5985490e9d21 (diff)
parent632326a7c762aa039d245a506553c9f06d23cd10 (diff)
downloadCMake-30fe9f024353dcb9799680e1da73d21745a53b3d.zip
CMake-30fe9f024353dcb9799680e1da73d21745a53b3d.tar.gz
CMake-30fe9f024353dcb9799680e1da73d21745a53b3d.tar.bz2
Merge topic 'FindSDL-mingw-mwindows'
632326a7 FindSDL: Add -mwindows to link flags for MinGW, correct wording
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindSDL.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/FindSDL.cmake b/Modules/FindSDL.cmake
index c0cdd98..4e4411f 100644
--- a/Modules/FindSDL.cmake
+++ b/Modules/FindSDL.cmake
@@ -122,11 +122,10 @@ if(NOT APPLE)
find_package(Threads)
endif()
-# MinGW needs an additional library, mwindows
-# It's total link flags should look like -lmingw32 -lSDLmain -lSDL -lmwindows
-# (Actually on second look, I think it only needs one of the m* libraries.)
+# MinGW needs an additional link flag, -mwindows
+# It's total link flags should look like -lmingw32 -lSDLmain -lSDL -mwindows
if(MINGW)
- set(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW")
+ set(MINGW32_LIBRARY mingw32 "-mwindows" CACHE STRING "link flags for MinGW")
endif()
if(SDL_LIBRARY_TEMP)