From e53072d638c2cca3258ffccbec75bb5c70d34a3f Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 21 Jun 2015 19:51:04 +0200 Subject: cmMakefile: Move IncludeScope instance. --- Source/cmMakefile.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 0142e6d..6fee95c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -558,6 +558,8 @@ bool cmMakefile::ReadListFile(const char* listfile, bool noPolicyScope, bool requireProjectCommand) { + IncludeScope incScope(this, noPolicyScope); + std::string filenametoread = cmSystemTools::CollapseFullPath(listfile, this->GetCurrentSourceDirectory()); @@ -587,7 +589,6 @@ bool cmMakefile::ReadListFile(const char* listfile, this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE"); this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR"); - IncludeScope incScope(this, noPolicyScope); this->ReadListFileInternal(listFile); if(cmSystemTools::GetFatalErrorOccured()) { -- cgit v0.12