summaryrefslogtreecommitdiff
path: root/qmake/project.cpp
Side-by-side diff
Diffstat (limited to 'qmake/project.cpp') (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
@@ -447,9 +447,9 @@ QMakeProject::read(QString project, QString)
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;