aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/CppModule.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-08-13 15:25:52 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-08-13 16:54:49 +0200
commit50d946443aed1898b6e7b5258289f0cb06a55108 (patch)
treeb6231b9ca2a273c444ceba4ae19bd86e7975d61a /share/qbs/modules/cpp/CppModule.qbs
parent21b54166ec5bcc3e81aa21fedba13e358496eb15 (diff)
Cpp module: Add property cxxLanguageVersion.
For simple enabling of C++11. Change-Id: Ie8dbebd5d903388ed87c23005ae56f104437a106 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'share/qbs/modules/cpp/CppModule.qbs')
-rw-r--r--share/qbs/modules/cpp/CppModule.qbs7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/CppModule.qbs b/share/qbs/modules/cpp/CppModule.qbs
index 298c1b803..487e5f940 100644
--- a/share/qbs/modules/cpp/CppModule.qbs
+++ b/share/qbs/modules/cpp/CppModule.qbs
@@ -164,6 +164,13 @@ Module {
allowedValues: ['default', 'hidden', 'hiddenInlines', 'minimal']
}
+ property string cxxLanguageVersion
+ PropertyOptions {
+ name: "cxxLanguageVersion"
+ allowedValues: ["c++98", "c++11"]
+ description: "The version of the C++ standard with which the code must comply."
+ }
+
// Platform properties. Those are intended to be set by the toolchain setup
// and are prepended to the corresponding user properties.
property stringList platformCommonCompilerFlags