diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2021-08-02 15:55:21 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2021-08-03 20:45:44 +0000 |
commit | 57bc6d8d9613f257b899fe8b94660142d4f91c07 (patch) | |
tree | 558a5d9ae7f673adb3afa1f58802f7588f67cd86 /doc | |
parent | e8b7cac678652bc2e1b9bcce5d808988a5b86982 (diff) | |
download | qbs-57bc6d8d9613f257b899fe8b94660142d4f91c07.tar.gz |
msvc: fix passing /Zc:__cplusplus flag
It is mandatory to pass /Zc:__cplusplus when building
with Qt 6.2 and MSVC.
Fixes: QBS-1655
Change-Id: I27d928a568d0ac2075ce3f77f4142e20342be358
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/modules/cpp-module.qdoc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/reference/modules/cpp-module.qdoc b/doc/reference/modules/cpp-module.qdoc index 1628bc80e..dba1d9d79 100644 --- a/doc/reference/modules/cpp-module.qdoc +++ b/doc/reference/modules/cpp-module.qdoc @@ -1925,3 +1925,17 @@ \windowsproperty \nodefaultvalue */ + +/*! + \qmlproperty string cpp::enableCxxLanguageMacro + \since Qbs 1.20 + + Whether to set the \c{/Zc:__cplusplus} macro + (\l{https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus}) + + This property only applies to MSVC toolchain. clang-cl also supports + this option, but it has no effect. + + \windowsproperty + \defaultvalue \c{true} for MSVC, \c{false} for clang-cl +*/ |