summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-21 17:43:55 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-21 18:10:47 (GMT)
commit5e24ff17a22b780947e98eabc1d25320104f7b21 (patch)
tree3de3e447f4d3622795dad8601242b07ae51a9f33 /Source
parentd5aaa2b96f7d93aaa8e11e8d5e9cf0c2b1739290 (diff)
downloadCMake-5e24ff17a22b780947e98eabc1d25320104f7b21.zip
CMake-5e24ff17a22b780947e98eabc1d25320104f7b21.tar.gz
CMake-5e24ff17a22b780947e98eabc1d25320104f7b21.tar.bz2
cmMakefile: Split file handling from execution.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 6b3c7df..e3a2e4c 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -561,6 +561,17 @@ bool cmMakefile::ReadListFile(const char* listfile,
cmSystemTools::CollapseFullPath(listfile,
this->GetCurrentSourceDirectory());
+ this->ListFileStack.push_back(filenametoread);
+
+ cmListFile listFile;
+ bool res = listFile.ParseFile(filenametoread.c_str(),
+ requireProjectCommand, this);
+ if (res)
+ {
+ // add this list file to the list of dependencies
+ this->ListFiles.push_back(filenametoread);
+ }
+
std::string currentParentFile
= this->GetSafeDefinition("CMAKE_PARENT_LIST_FILE");
std::string currentFile
@@ -574,16 +585,8 @@ bool cmMakefile::ReadListFile(const char* listfile,
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
- this->ListFileStack.push_back(filenametoread);
-
- cmListFile listFile;
- bool res = listFile.ParseFile(filenametoread.c_str(),
- requireProjectCommand, this);
if (res)
{
- // add this list file to the list of dependencies
- this->ListFiles.push_back(filenametoread);
-
this->ReadListFileInternal(listFile, filenametoread.c_str(),
noPolicyScope);