From 93cd91a97c57fd4fbefa4a5bc8d13ac01c496b6b Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sun, 16 Oct 2022 10:22:41 +0200 Subject: [PATCH] apply _CRT_SECURE_NO_WARNINGS on all Windows targets That includes clang-cl. It will have no downside effect on mingw64 builds. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 616425e..a76e9a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,7 +73,7 @@ target_include_directories(matroska PUBLIC $ $) -if(MSVC) +if(WIN32) target_compile_definitions(matroska PRIVATE _CRT_SECURE_NO_WARNINGS) endif() -- 2.50.1