Fixed error C2766 with flag /Zc:__cplusplus on VS2017+ (fixes #1250)

This commit is contained in:
Benoit Blanchon
2020-04-28 09:11:46 +02:00
parent daa279d57b
commit 959b1d9e4c
3 changed files with 13 additions and 6 deletions

View File

@ -70,6 +70,12 @@ if(MSVC)
/W4 # Set warning level
/WX # Treats all compiler warnings as errors.
)
if (NOT MSVC_VERSION LESS 1910) # >= Visual Studio 2017
add_compile_options(
/Zc:__cplusplus # Enable updated __cplusplus macro
)
endif()
endif()
include_directories(Helpers)