don't set m_sourceRoot if it equals m_buildRoot

Change-Id: I3e20c2a9b4455f7e9fcc60202166d1a8a079cba2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Oswald Buddenhagen
2012-08-01 10:55:03 +02:00
parent 369fdc3aee
commit f1a3a2d00c

View File

@@ -986,7 +986,8 @@ bool QMakeEvaluator::prepareProject(const QString &inDir)
if (!IoUtils::exists(cachefile))
cachefile.clear();
if (!conffile.isEmpty() || !cachefile.isEmpty()) {
m_sourceRoot = sdir;
if (dir != sdir)
m_sourceRoot = sdir;
m_buildRoot = dir;
break;
}