diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp index 7495bcc7bfd322c511e077605c718087c5ab2b38..d536a03ef0fea5490d362386e069310d3fdc8406 100644 --- a/src/shared/proparser/profileevaluator.cpp +++ b/src/shared/proparser/profileevaluator.cpp @@ -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); } }