diff --git a/CMakeLists.txt b/CMakeLists.txt index 255d7e67..2fd4275c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - add_compile_options(/utf-8 /wd4267 /wd4244 /wd5219) + add_compile_options(/Zc:__cplusplus /utf-8 /wd4267 /wd4244 /wd5219) endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")