summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--qmake/project.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp
index 96cdad8..44eb503 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -439,25 +439,25 @@ QMakeProject::read(QString project, QString)
}
}
/* parse mkspec */
QStringList mkspec_roots;
/* prefer $QTDIR if it is set */
/* prefer QMAKESPECSDIR -cl */
if (getenv("QTDIR")) {
mkspec_roots << getenv("QTDIR");
}
mkspec_roots << qInstallPathData();
- if (getenv("QMAKESPECSDIR")){
+ if (Option::mkfile::qmakespec.isEmpty() && getenv("QMAKESPECSDIR")){
QString mkspec = QString(getenv("QMAKESPECSDIR")) + QDir::separator() +
QDir::separator() + "default";
if(QFile::exists(mkspec))
Option::mkfile::qmakespec = mkspec;
}
if(Option::mkfile::qmakespec.isEmpty()) {
for(QStringList::Iterator it = mkspec_roots.begin(); it != mkspec_roots.end(); ++it) {
QString mkspec = (*it) + QDir::separator() + QString("mkspecs") +
QDir::separator() + "default";
if(QFile::exists(mkspec)) {
Option::mkfile::qmakespec = mkspec;