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

This commit is contained in:
Stephen Kelly committed 2015-06-30 23:14:20 +02:00
1 parent f346d88d10
commit 5bf9bfda3f
1 file changed
+1 -2
+1 -2
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;
}