mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
9eb76edabf
* [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
16 lines
478 B
Diff
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)
|
|
|