1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 14:27:56 +00:00

CMake: fix MSVC __cplusplus (#13934)

This commit is contained in:
Francisco Pombal 2021-05-27 04:57:22 +01:00 committed by GitHub
parent 2f6abb8aa1
commit 0c71756009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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