de-duplicate feature and mkspec root candidate lists
Change-Id: I03f5b5903a133e5386b9ebef640ddbacdf3ebcd4 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
00821ec710
commit
52843c1988
@ -595,6 +595,7 @@ QStringList Option::mkspecPaths()
|
||||
if (!Option::mkfile::project_root.isEmpty())
|
||||
ret << Option::mkfile::project_root + concat;
|
||||
ret << QLibraryInfo::location(QLibraryInfo::HostDataPath) + concat;
|
||||
ret.removeDuplicates();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -593,6 +593,7 @@ QStringList qmake_feature_paths(QMakeProperty *prop=0)
|
||||
concat_it != concat.end(); ++concat_it)
|
||||
feature_roots << (QLibraryInfo::location(QLibraryInfo::HostDataPath) +
|
||||
mkspecs_concat + (*concat_it));
|
||||
feature_roots.removeDuplicates();
|
||||
return feature_roots;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user