mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
cmMakefile: Move IncludeScope instance.
This commit is contained in:
1 parent
b7166afa6d
commit
e53072d638
1 file changed
+2
-1
@@ -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())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user