cmMakefile: Remove intermediate variable.

This commit is contained in:
Stephen Kelly 2015-04-18 14:50:37 +02:00
parent 9db1595410
commit 7d24854736
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}