early-access version 2853
This commit is contained in:
15
externals/vcpkg/ports/sdl2/0004-Define-crt-macros.patch
vendored
Executable file
15
externals/vcpkg/ports/sdl2/0004-Define-crt-macros.patch
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -602,6 +602,11 @@ if(USE_GCC OR USE_CLANG)
|
||||
list(APPEND EXTRA_CFLAGS -fcolor-diagnostics)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
+if(MSVC)
|
||||
+ target_compile_definitions(sdl-build-options INTERFACE "-D_CRT_SECURE_NO_DEPRECATE")
|
||||
+ target_compile_definitions(sdl-build-options INTERFACE "-D_CRT_NONSTDC_NO_DEPRECATE")
|
||||
+ target_compile_definitions(sdl-build-options INTERFACE "-D_CRT_SECURE_NO_WARNINGS")
|
||||
+endif()
|
||||
|
||||
if(SDL_ASSEMBLY)
|
||||
|
Reference in New Issue
Block a user