From 8fc445c7303b9615de1b651e5b2600148596a007 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 7 Jan 2023 16:58:42 +0100 Subject: [PATCH] cmake: SDL3 does not need -lmingw32 anymore because SDL_main has gone --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f16a5848..067f9665d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1946,7 +1946,7 @@ elseif(WINDOWS) file(GLOB VERSION_SOURCES ${SDL3_SOURCE_DIR}/src/core/windows/*.rc) if(MINGW OR CYGWIN) - list(INSERT SDL_PC_LIBS 0 "-lmingw32" "-mwindows") + list(APPEND SDL_PC_LIBS "-mwindows") endif() elseif(APPLE)