yuzu/externals/vcpkg/ports/sdl2/0004-Define-crt-macros.patch

16 lines
478 B
Diff
Raw Normal View History

2022-07-23 05:01:36 +04:00
--- 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)