Use /permissive- with MSVC

(cherry picked from commit 1e3427659b06f0cf128e480cad7f14b8bcbe25f6)
This commit is contained in:
Christos Stratopoulos 2018-02-22 09:51:59 -05:00 committed by Denis Blank
parent 3c90862768
commit af9e1b0371

View File

@ -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()