cmMakefile: Don't use string comparison to check directory level.

This commit is contained in:
Stephen Kelly 2015-06-21 23:01:13 +02:00
parent f346d88d10
commit 5bf9bfda3f
1 changed files with 1 additions and 2 deletions

View File

@ -431,12 +431,11 @@ private:
bool cmMakefile::ProcessBuildsystemFile(const char* filename)
{
this->AddDefinition("CMAKE_PARENT_LIST_FILE", filename);
std::string curSrc = this->GetCurrentSourceDirectory();
BuildsystemFileScope scope(this, filename);
cmListFile listFile;
if (!listFile.ParseFile(filename, curSrc == this->GetHomeDirectory(), this))
if (!listFile.ParseFile(filename, this->IsRootMakefile(), this))
{
return false;
}