From ddd9c55822731b4449a012a32247686de9ed7f3b Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 3 Nov 2020 12:12:27 +0100 Subject: [PATCH] Disable _s warnings on msvc --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d777da4..28295fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,8 @@ elseif (WIN32) # completely cross platform. For fixes to common issues arising from /permissive- visit: # https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /permissive-") + # disables warnings about _s variants of stdc functions + add_definitions(_CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_DEPRECATE) endif () find_package(Boost 1.71.0 REQUIRED COMPONENTS system thread)