From 7d248547361bbacb4f5b532ef2ce4f4935c97dc8 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 18 Apr 2015 14:50:37 +0200 Subject: cmMakefile: Remove intermediate variable. --- Source/cmMakefile.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 9b2ee35..d3ea55a 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -532,11 +532,10 @@ bool cmMakefile::ProcessBuildsystemFile(const char* listfile) bool cmMakefile::ReadDependentFile(const char* listfile, bool noPolicyScope) { this->AddDefinition("CMAKE_PARENT_LIST_FILE", this->GetCurrentListFile()); - std::string filenametoread = + this->cmCurrentListFile = cmSystemTools::CollapseFullPath(listfile, this->cmStartDirectory.c_str()); - this->cmCurrentListFile = filenametoread; - return this->ReadListFile(0, filenametoread.c_str(), + return this->ReadListFile(0, this->cmCurrentListFile.c_str(), noPolicyScope); } -- cgit v0.12