path: root/qmake/project.cpp
diff options
authorOswald Buddenhagen <>2015-04-13 21:18:36 +0200
committerOswald Buddenhagen <>2015-04-21 12:06:20 +0000
commit4c96367410500c1b373a78cc3b5c6e07e8c998a5 (patch)
treedd85decb58aa3c69f606e040c3d7a3bb5d0ab025 /qmake/project.cpp
parent6234dec41f48383ea3fe848fa2b3f1de64e426ba (diff)
make fileFixify() calling convention somewhat sane
instead of allowing arbitrary input and output base paths, restrict them to the project input and output dirs (in any permutation), which are the only cases ever used anyway. this permits much clearer call sites, and allows later optimizations. Change-Id: I48d149a4417af5c858e66ec57c476a5bc6b17f17 Reviewed-by: Joerg Bornemann <>
Diffstat (limited to 'qmake/project.cpp')
1 files changed, 1 insertions, 0 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp
index 445c5c9bc5..faea6da650 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -70,6 +70,7 @@ bool QMakeProject::read(const QString &project, LoadFlags what)
QString absproj = (project == QLatin1String("-"))
? QLatin1String("(stdin)")
: QDir::cleanPath(QDir(qmake_getpwd()).absoluteFilePath(project));
+ m_projectDir = QFileInfo(absproj).path();
return boolRet(evaluateFile(absproj, QMakeHandler::EvalProjectFile, what));