summaryrefslogtreecommitdiffstats
path: root/qmake/project.cpp
diff options
context:
space:
mode:
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);