From af9e1b0371c799ec68acd0ed94d615886f5ea7f7 Mon Sep 17 00:00:00 2001 From: Christos Stratopoulos Date: Thu, 22 Feb 2018 09:51:59 -0500 Subject: [PATCH] Use /permissive- with MSVC (cherry picked from commit 1e3427659b06f0cf128e480cad7f14b8bcbe25f6) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a2b830f..9133915 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,6 +127,7 @@ if (CTI_CONTINUABLE_WITH_TESTS OR CTI_CONTINUABLE_WITH_EXAMPLES) string(REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive-") endif() enable_testing()