Browse Source

CMake: fix MSVC __cplusplus (#13934)

adaptive-webui-19844
Francisco Pombal 4 years ago committed by GitHub
parent
commit
0c71756009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmake/Modules/MacroQbtCommonConfig.cmake

2
cmake/Modules/MacroQbtCommonConfig.cmake

@ -79,6 +79,8 @@ macro(qbt_common_config)
target_compile_options(qbt_common_cfg INTERFACE target_compile_options(qbt_common_cfg INTERFACE
/guard:cf /guard:cf
/utf-8 /utf-8
# https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
/Zc:__cplusplus
) )
target_link_options(qbt_common_cfg INTERFACE target_link_options(qbt_common_cfg INTERFACE
/guard:cf /guard:cf

Loading…
Cancel
Save