summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-14 21:47:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-19 20:36:48 (GMT)
commit6b9e647239b67aff3119efbe2691fefe9c2dc28b (patch)
tree7c4ddbaa7ccb8311a1a4b44aa1230e8a790eb8cd /Source/cmMakefile.cxx
parent594dd9b36a7f3ac37b56c89596ff38451570de3e (diff)
downloadCMake-6b9e647239b67aff3119efbe2691fefe9c2dc28b.zip
CMake-6b9e647239b67aff3119efbe2691fefe9c2dc28b.tar.gz
CMake-6b9e647239b67aff3119efbe2691fefe9c2dc28b.tar.bz2
cmMakefile: Port CurrentListFile clients to GetDefinition.
There is no need to store this as a member variable.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 3e19cbb..0a112cb 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -609,7 +609,8 @@ bool cmMakefile::ProcessBuildsystemFile(const char* listfile)
bool cmMakefile::ReadDependentFile(const char* listfile, bool noPolicyScope)
{
- this->AddDefinition("CMAKE_PARENT_LIST_FILE", this->GetCurrentListFile());
+ this->AddDefinition("CMAKE_PARENT_LIST_FILE",
+ this->GetDefinition("CMAKE_CURRENT_LIST_FILE"));
this->cmCurrentListFile =
cmSystemTools::CollapseFullPath(listfile,
this->GetCurrentSourceDirectory());