From ab0f6187ebd07cc9cc6dc9bc24a38a907b5b64a6 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Wed, 26 Nov 2025 17:02:36 -0600 Subject: _CRT_SECURE_NO_WARNINGS --- common/c_cpp/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/c_cpp') diff --git a/common/c_cpp/CMakeLists.txt b/common/c_cpp/CMakeLists.txt index 5ab146e..1e2cf1f 100644 --- a/common/c_cpp/CMakeLists.txt +++ b/common/c_cpp/CMakeLists.txt @@ -23,6 +23,13 @@ else() target_compile_options(common INTERFACE -Wall -Wextra -Wpedantic) endif() +# ----------------------------------------------------------------------------- +# Disable stupid warnings on Windows +# ----------------------------------------------------------------------------- +if(WIN32) + target_compile_definitions(common INTERFACE _CRT_SECURE_NO_WARNINGS) +endif() + # @@ should do a test compile to see if asan is actually available if(NOT MINGW) target_compile_options(common INTERFACE -fsanitize=address) -- cgit v1.2.3