forked from qt-creator/qt-creator
stop looking for features outside the mkspecs/ hierarchy
follow suit to qmake ... Change-Id: I8f041adbc3305cddaf7dfd016fc83da228b253e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -1095,13 +1095,14 @@ QStringList QMakeEvaluator::qmakeFeaturePaths() const
|
||||
QString qmakespec = resolvePath(m_option->qmakespec);
|
||||
feature_roots << (qmakespec + features_concat);
|
||||
|
||||
// Also check directly under the root directory of the mkspecs collection
|
||||
QDir specdir(qmakespec);
|
||||
while (!specdir.isRoot()) {
|
||||
if (!specdir.cdUp() || specdir.isRoot())
|
||||
break;
|
||||
if (IoUtils::exists(specdir.path() + features_concat)) {
|
||||
foreach (const QString &concat_it, concat)
|
||||
feature_roots << (specdir.path() + concat_it);
|
||||
while (!specdir.isRoot() && specdir.cdUp()) {
|
||||
const QString specpath = specdir.path();
|
||||
if (specpath.endsWith(mkspecs_concat)) {
|
||||
if (IoUtils::exists(specpath + features_concat))
|
||||
foreach (const QString &concat_it, concat)
|
||||
feature_roots << (specdir.path() + concat_it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user