Skip to content

Commit 86a4cc3

Browse files
authored
Update SDL to release-2.32.10 (pipewire fix) (#2827)
* Update SDL2 submodule to release-2.32.10 * SDL2 update MSVC fix Tries to ensure SDL2 builds with the same runtime as the rest of the project * Another try to compile the updated SDL2 on MSVC. * Yet another try to compile the updated SDL2 on MSVC. * Directly link libs for SDL2 win compiling * SDL2 update linking MSVC try using CMP0079 * another sdl2 win build try
1 parent 21aa81a commit 86a4cc3

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

cmake/sdl.cmake

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,21 @@ if(BUILD_SDL AND NOT EMSCRIPTEN AND NOT RPI AND NOT PREFER_SYSTEM_LIBRARIES)
2424
set(SDL_STATIC_PIC ON CACHE BOOL "" FORCE)
2525
endif()
2626

27+
2728
add_subdirectory(${THIRDPARTY_DIR}/sdl2)
2829

30+
if(MSVC)
31+
# CMake policy CMP0079
32+
# This allows linking libraries to targets not built in the current directory.
33+
cmake_policy(SET CMP0079 NEW)
34+
35+
target_link_libraries(SDL2 PRIVATE
36+
libcmt.lib
37+
libvcruntime.lib
38+
libucrt.lib
39+
)
40+
endif()
41+
2942
endif()
3043

3144
################################

vendor/sdl2

Submodule sdl2 updated 1349 files

0 commit comments

Comments
 (0)