Commit d211aaddc1edaad0e7d461d6837f3f1d2f9f4b41

Anonymous Maarten 2022-07-23T15:29:39

cmake: don't add -mwindows to link flags in sdl2.pc

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 27cecf1..64081de 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1895,7 +1895,7 @@ elseif(WINDOWS)
       list(APPEND SDL_CFLAGS "-Dmain=SDL_main")
       list(INSERT SDL_LIBS 0 "-lSDL2main")
     endif(NOT SDL2_DISABLE_SDL2MAIN)
-    list(INSERT SDL_LIBS 0 "-lmingw32" "-mwindows")
+    list(INSERT SDL_LIBS 0 "-lmingw32")
   endif()
 
 elseif(APPLE)