diff --git a/CMakeLists.txt b/CMakeLists.txt index aef95871e4cc..4494ce895d23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -641,6 +641,7 @@ if(BUILD_CPP_TEST) file(GLOB CPP_TEST_SOURCES tests/cpp_tests/*.cpp) if(MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive-") set( CompilerFlags CMAKE_CXX_FLAGS