diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-07 21:36:13 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-18 11:12:07 (GMT) |
commit | 6083ec9a78fd48c66087f9c9e887b9b405c69999 (patch) | |
tree | 3b74634451d1ed388be593004de1f81a24b0a1d0 | |
parent | 647b533bce48b741a6b048a1e62b24b9bb2f8d23 (diff) | |
download | CMake-6083ec9a78fd48c66087f9c9e887b9b405c69999.zip CMake-6083ec9a78fd48c66087f9c9e887b9b405c69999.tar.gz CMake-6083ec9a78fd48c66087f9c9e887b9b405c69999.tar.bz2 |
cmMakefile: Implement LISTFILE_STACK property in terms of cmState.
-rw-r--r-- | Source/cmMakefile.cxx | 10 |
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" ) |