Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

CMake: Silence more MSVC "deprecation" warnings

Yuri Kunde Schlesnerf3e006d3a6c2
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa6463b015..604362e57c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,7 +74,7 @@ if (NOT MSVC)
endif()
else()
# Silence "deprecation" warnings
- add_definitions(/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE)
+ add_definitions(/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS)
# Avoid windows.h junk
add_definitions(/DNOMINMAX)