forked from bblanchon/ArduinoJson
Fixed error C2766 with flag /Zc:__cplusplus
on VS2017+ (fixes #1250)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user