aboutsummaryrefslogtreecommitdiffstats
path: root/doc/reference/modules
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2021-08-02 15:55:21 +0300
committerIvan Komissarov <ABBAPOH@gmail.com>2021-08-03 20:45:44 +0000
commit57bc6d8d9613f257b899fe8b94660142d4f91c07 (patch)
tree558a5d9ae7f673adb3afa1f58802f7588f67cd86 /doc/reference/modules
parente8b7cac678652bc2e1b9bcce5d808988a5b86982 (diff)
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/reference/modules')
-rw-r--r--doc/reference/modules/cpp-module.qdoc14
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
+*/