aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/qtprofilesetup/templates
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-07-23 11:55:11 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-08-04 14:47:02 +0000
commit8c5e63fae7509b6dcc8a3d4387e5d27093ede7fc (patch)
treef0a844ff4f927ea37f471c7108186d705da44c1e /src/lib/qtprofilesetup/templates
parent6cc4b9d6af6ed169cdb05a3925e50d353ab8c8a9 (diff)
Make it possible to overwrite properties conditionally.
If a product or higher-level module wants to set the property of a (different) module only if some condition is fulfilled and leave it unchanged otherwise, it would currently need to duplicate the value from the module prototype. Obviously, this is not feasible for anything but the most trivial definitions, and even then it easily introduces maintenance problems. Change-Id: If33c93a25dc84603fe95704e8815aa6e3aa1e0e4 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/lib/qtprofilesetup/templates')
-rw-r--r--src/lib/qtprofilesetup/templates/core.qbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/qtprofilesetup/templates/core.qbs b/src/lib/qtprofilesetup/templates/core.qbs
index 844a58784..8bec90675 100644
--- a/src/lib/qtprofilesetup/templates/core.qbs
+++ b/src/lib/qtprofilesetup/templates/core.qbs
@@ -144,6 +144,7 @@ Module {
if (qbs.targetOS.contains('darwin') && qbs.toolchain.contains('clang')
&& config.contains('c++11'))
return "libc++";
+ return original;
}
additionalProductTypes: ["qm"]