Make sure MSVC correctly defines __cplusplus

This commit is contained in:
Marcus Holland-Moritz 2023-07-11 01:20:42 +02:00
parent 35d27e8e24
commit 96a101310f

View File

@ -96,7 +96,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
endif() endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") 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() endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")