From dcd3354604803b337f5a0f435baf7ff225d218f7 Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 20 May 2022 17:10:37 +0200 Subject: [PATCH] CMakeLists.txt: Make sure conforming mode is enabled when using MSVC Signed-off-by: Username404 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d801f8c..4b68f16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,7 @@ elseif(MSVC) if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${MINIMAL_MSVC} AND NOT ${IGNORE_MINIMAL_COMPILER_VERSION}) message(FATAL_ERROR "MSVC ${MINIMAL_MSVC} or higher is required") endif() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR /W3 /Zc:__cplusplus /Zc:preprocessor /Zc:throwingNew /Zc:inline") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive- /GR /W3 /Zc:__cplusplus /Zc:preprocessor /Zc:throwingNew /Zc:inline") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO") endif() string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPERCASE_BUILD_TYPE)