summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-21 17:51:04 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-21 18:10:49 (GMT)
commite53072d638c2cca3258ffccbec75bb5c70d34a3f (patch)
treefe105a0c3b88858def156fc31242a555180b3364 /Source
parentb7166afa6d385c4f0a0610f43ea00c8e5613a003 (diff)
downloadCMake-e53072d638c2cca3258ffccbec75bb5c70d34a3f.zip
CMake-e53072d638c2cca3258ffccbec75bb5c70d34a3f.tar.gz
CMake-e53072d638c2cca3258ffccbec75bb5c70d34a3f.tar.bz2
cmMakefile: Move IncludeScope instance.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 2 insertions, 1 deletions
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())
{