diff options
Diffstat (limited to 'qmake/project.cpp')
-rw-r--r-- | qmake/project.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp index 53f8d544fb..92c07825cb 100644 --- a/qmake/project.cpp +++ b/qmake/project.cpp @@ -627,7 +627,12 @@ QStringList qmake_feature_paths(QMakeProperty *prop, bool host_build) QLibraryInfo::EffectivePaths) + mkspecs_concat + (*concat_it)); feature_roots.removeDuplicates(); - return feature_roots; + + QStringList ret; + foreach (const QString &root, feature_roots) + if (QFileInfo(root).exists()) + ret << root; + return ret; } QStringList qmake_mkspec_paths() |