summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-06-18 12:06:37 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-06-27 14:35:33 +0200
commit2106ab2e756b8c7c190268b595aad98b630eb9c7 (patch)
tree8d1e9e1df05d5ef8cfef099078d1c3802140ce22 /qmake
parent689aa4da2dd7c01ee487dc346db8fe6191c2da4a (diff)
use source root also for finding features
Change-Id: I108914c6d2c6d06414156584aeb3a1afb0f5838d Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/project.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp
index 8b151539fd..36bf6add96 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -583,6 +583,8 @@ QStringList QMakeProject::qmakeFeaturePaths()
QStringList feature_bases;
if (!cached_build_root.isEmpty())
feature_bases << cached_build_root;
+ if (!cached_source_root.isEmpty())
+ feature_bases << cached_source_root;
QStringList qmakepath = splitPathList(QString::fromLocal8Bit(qgetenv("QMAKEPATH")));
qmakepath += cached_qmakepath;
foreach (const QString &path, qmakepath)