mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 22:27:50 +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 commitd4f718e882
. * Revert "[ffmpeg] Remove all avresample" This reverts commitf1fecaa8cf
. * 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)
|
|
|