From 5c8581fc9380f03200f41f1ea706545355ad046f Mon Sep 17 00:00:00 2001 From: jrb0001 Date: Mon, 30 Dec 2019 18:07:17 +0100 Subject: [PATCH] Fix build with mingw --- sdl2-sys/patches/SDL2-2.0.9-CMakeLists.txt.patch | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sdl2-sys/patches/SDL2-2.0.9-CMakeLists.txt.patch b/sdl2-sys/patches/SDL2-2.0.9-CMakeLists.txt.patch index 2ec9f524..278afea7 100644 --- a/sdl2-sys/patches/SDL2-2.0.9-CMakeLists.txt.patch +++ b/sdl2-sys/patches/SDL2-2.0.9-CMakeLists.txt.patch @@ -1,11 +1,13 @@ --- CMakeLists.txt 2018-10-31 08:07:22.000000000 -0700 +++ CMakeLists.txt 2019-12-04 21:50:07.606700200 -0800 -@@ -1292,7 +1292,7 @@ - endif() - +@@ -1294,6 +1294,10 @@ # Libraries for Win32 native and MinGW -- list(APPEND EXTRA_LIBS user32 gdi32 winmm imm32 ole32 oleaut32 version uuid advapi32 shell32) -+ list(APPEND EXTRA_LIBS user32 gdi32 winmm imm32 ole32 oleaut32 version uuid advapi32 shell32 vcruntime) - + list(APPEND EXTRA_LIBS user32 gdi32 winmm imm32 ole32 oleaut32 version uuid advapi32 shell32) + ++ if(MSVC AND NOT ${MSVC_VERSION} LESS 1920) ++ list(APPEND EXTRA_LIBS vcruntime) ++ endif() ++ # TODO: in configure.in the check for timers is set on # cygwin | mingw32* - does this include mingw32CE? + if(SDL_TIMERS)