Fix compile error when use msvc 2019 (#754)

See https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
This commit is contained in:
Yu Zeng 2021-01-19 11:04:57 +08:00 committed by Fangrui Song
parent 40145807d5
commit aca02d209b

View File

@ -45,6 +45,7 @@ if(MSVC)
/wd4800 /wd4800
/wd4068 # Disable unknown pragma warning /wd4068 # Disable unknown pragma warning
/std:c++17 /std:c++17
/Zc:__cplusplus
$<$<CONFIG:Debug>:/FS> $<$<CONFIG:Debug>:/FS>
) )
# relink system libs # relink system libs