don't attempt to read qmake cache if there is none

evaluating a file (which might not exist) is a bit different than just
merging a (possibly empty) map ...
This commit is contained in:
Oswald Buddenhagen
2009-09-08 14:19:34 +02:00
parent 37c5e2ddd3
commit 2513c0a93f

View File

@@ -1197,8 +1197,8 @@ ProItem::ProItemReturn ProFileEvaluator::Private::visitBeginProFile(ProFile * pr
if (!evaluateFileInto(spec,
&m_option->base_valuemap, &m_option->base_functions)) {
errorMessage(format("Could not read qmake configuration file %1").arg(spec));
} else {
evaluateFileInto(qmake_cache,
} else if (!m_option->cachefile.isEmpty()) {
evaluateFileInto(m_option->cachefile,
&m_option->base_valuemap, &m_option->base_functions);
}
}