From b08c8aa0edb3fd1604a708fa2e7a31a0b95817b7 Mon Sep 17 00:00:00 2001 From: obligaron Date: Fri, 16 Jul 2021 10:45:11 +0200 Subject: [PATCH] MSVC disable warning for unecure CRT functions (for example strcpy) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ee761571..f12ea44db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -835,6 +835,7 @@ endif() if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") target_compile_options(libdevilutionx PUBLIC "/W3") + target_compile_definitions(libdevilutionx PUBLIC _CRT_SECURE_NO_WARNINGS) target_compile_options(libdevilutionx PUBLIC "/Zc:__cplusplus") endif()