summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-07 21:36:13 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-18 11:12:07 (GMT)
commit6083ec9a78fd48c66087f9c9e887b9b405c69999 (patch)
tree3b74634451d1ed388be593004de1f81a24b0a1d0
parent647b533bce48b741a6b048a1e62b24b9bb2f8d23 (diff)
downloadCMake-6083ec9a78fd48c66087f9c9e887b9b405c69999.zip
CMake-6083ec9a78fd48c66087f9c9e887b9b405c69999.tar.gz
CMake-6083ec9a78fd48c66087f9c9e887b9b405c69999.tar.bz2
cmMakefile: Implement LISTFILE_STACK property in terms of cmState.
-rw-r--r--Source/cmMakefile.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index cbaf972..647caba 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4282,7 +4282,15 @@ const char *cmMakefile::GetProperty(const std::string& prop,
}
else if (prop == "LISTFILE_STACK")
{
- output = cmJoin(this->ListFileStack, ";");
+ std::vector<std::string> listFiles;
+ cmState::Snapshot snp = this->StateSnapshot;
+ while (snp.IsValid())
+ {
+ listFiles.push_back(snp.GetExecutionListFile());
+ snp = snp.GetCallStackParent();
+ }
+ std::reverse(listFiles.begin(), listFiles.end());
+ output = cmJoin(listFiles, ";");
return output.c_str();
}
else if ( prop == "CACHE_VARIABLES" )