From c10ab014344e693a65d7cfbfb9b4e0f8a8b155f9 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 21 Jun 2015 20:08:30 +0200 Subject: [PATCH] cmMakefile: Move IncludeScope. --- Source/cmMakefile.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 32767a3b2..744e84889 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -561,14 +561,15 @@ bool cmMakefile::ReadDependentFile(const char* filename, bool noPolicyScope) cmSystemTools::CollapseFullPath(filename, this->GetCurrentSourceDirectory()); + IncludeScope incScope(this, noPolicyScope); this->ListFileStack.push_back(filenametoread); cmListFile listFile; if (!listFile.ParseFile(filenametoread.c_str(), false, this)) { + incScope.Quiet(); return false; } - IncludeScope incScope(this, noPolicyScope); this->ReadListFile(listFile, filenametoread); if(cmSystemTools::GetFatalErrorOccured()) {