mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 15:27:49 +08:00
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)
|
||
|
|