summaryrefslogtreecommitdiffstats
path: root/qmake/project.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-08-21 14:36:20 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-05 03:03:06 +0200
commit19e3441b7c6dfb25e3dd8c019b681922404a7aae (patch)
treeea2206a1b26f0a79d10793fef5cadc7e38a27569 /qmake/project.cpp
parent56d5c909af6473be64a1ae487b45bd444a9a8553 (diff)
remove QMAKE_MKSPECS property from qmake -query's view
it's a dynamic property which is something between meaningless and misleading when used outside a project file. also, experience from creator shows that people would consistently abuse it (not handling it as the list it is). Change-Id: Id52cd40da5c38c0c74535d0701fdae53dfa39cad Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'qmake/project.cpp')
-rw-r--r--qmake/project.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp
index 7a80cc659e..a97d4accce 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -3683,7 +3683,9 @@ QMakeProject::doVariableReplaceExpand(const QString &str, QHash<QString, QString
if(var_type == ENVIRON) {
replacement = split_value_list(QString::fromLocal8Bit(qgetenv(var.toLatin1().constData())));
} else if(var_type == PROPERTY) {
- if(prop)
+ if (var == "QMAKE_MKSPECS")
+ replacement = split_value_list(qmake_mkspec_paths().join(Option::dirlist_sep));
+ else if (prop)
replacement = split_value_list(prop->value(var));
} else if(var_type == FUNCTION) {
replacement = doProjectExpand(var, args, place);