Skip to content

Commit 83d2f3e

Browse files
committed
force use system CRT to build static SDL2
1 parent da8096a commit 83d2f3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

3rdparty/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if(XASH_SDL)
2626
add_definitions(-D_ftol2_sse=SDL_ftol2_sse) # fix x86 compile
2727
endif()
2828
set(DIRECTX OFF CACHE BOOL "" FORCE) # win10 arm dont have dx8
29+
set(LIBC ON CACHE BOOL "" FORCE) # win10 arm dont have dx8
2930
add_subdirectory(SDL2 EXCLUDE_FROM_ALL)
3031
target_link_libraries(sdl2 INTERFACE SDL2-static)
3132
endif()

0 commit comments

Comments
 (0)