vcpkg/ports/sdl2/0004-Define-crt-macros.patch
Matthew Oliver 9eb76edabf
[ freetype2/harfbuzz/sdl2] Update to the latest version (#22586)
* [freetype2] Update to 2.11.1

* [harfbuzz] Update to 3.2.0

* [sdl2] Update to 2.0.20

* [ffmpeg] Update to 5.0

* Update versions.

* [ffmpeg] Remove all avresample

* Update ffmpeg.json

* Update ffmpeg.json

* Update ffmpeg.json

* Revert "[ffmpeg] Update to 5.0"

This reverts commit d4f718e882fe022f641b68e154e8cf64776c4143.

* Revert "[ffmpeg] Remove all avresample"

This reverts commit f1fecaa8cfa5b7f42fbef0897312028dc88b0ec8.

* update

* fix revert.

* [sdl2] Fix uwp build.

* Update sdl2.json
2022-01-26 15:32:31 -08:00

16 lines
478 B
Diff

--- 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)