forked from Rust-SDL2/rust-sdl2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors building on Windows with bundled Rust-SDL2#958
- Loading branch information
1 parent
a10c75f
commit b1c0451
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...s/patches/SDL2-2.0.9-CMakeLists.txt.patch → .../patches/SDL2-2.0.10-CMakeLists.txt.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- CMakeLists.txt 2018-10-31 08:07:22.000000000 -0700 | ||
+++ CMakeLists.txt 2019-12-04 21:50:07.606700200 -0800 | ||
@@ -1294,6 +1294,10 @@ | ||
@@ -1337,6 +1337,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 setupapi 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 | ||
# TODO: in configure.ac the check for timers is set on | ||
# cygwin | mingw32* - does this include mingw32CE? | ||
if(SDL_TIMERS) |