diff --git a/cmake/Modules/MacroQbtCommonConfig.cmake b/cmake/Modules/MacroQbtCommonConfig.cmake index 7c49a068e..cea42388c 100644 --- a/cmake/Modules/MacroQbtCommonConfig.cmake +++ b/cmake/Modules/MacroQbtCommonConfig.cmake @@ -79,6 +79,8 @@ macro(qbt_common_config) target_compile_options(qbt_common_cfg INTERFACE /guard:cf /utf-8 + # https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ + /Zc:__cplusplus ) target_link_options(qbt_common_cfg INTERFACE /guard:cf