From 0c9c4ffa70457fd35f7a341a8a687c841451d837 Mon Sep 17 00:00:00 2001
From: Sandro Mani <[EMAIL REDACTED]>
Date: Sat, 24 Jul 2021 14:17:55 +0200
Subject: [PATCH] Add -lmingw32 to SDL_LIBS
This prevents undefined references to WinMain@16 by consumers.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 14ea7d3..61b5a39 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,7 +234,7 @@ if(SDL12DEVEL)
if(WIN32)
set(SDL_CFLAGS "")
set(SDL_RLD_FLAGS "")
- set(SDL_LIBS "-lSDLmain -lSDL -mwindows") # -lmingw32 -lSDL -mwindows
+ set(SDL_LIBS "-lmingw32 -lSDLmain -lSDL -mwindows")
set(SDL_STATIC_LIBS "")
elseif(APPLE)
set(SDL_CFLAGS "-D_THREAD_SAFE")