From 1ee920bc0de9c4cee9bc72d38c03a2fb0ac529bf Mon Sep 17 00:00:00 2001 From: Stephen Hurd <deuce@synchro.net> Date: Sat, 26 Feb 2022 01:46:33 -0500 Subject: [PATCH] Attempt to disable most of the warnings. Define _CRT_SECURE_NO_WARNINGS and _CRT_NONSTDC_NO_DEPRECATE --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1500fc..04e4263 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ include("FetchContent") if(MSVC) add_compile_options("/FI${XPDevPlus_BINARY_DIR}/xpdevplus.h") + add_compile_definitions(NOMINMAX _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE) else() add_compile_options("SHELL:-include xpdevplus.h") endif() -- GitLab