Commit 5bf9bfda authored by Stephen Kelly's avatar Stephen Kelly
Browse files

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

parent f346d88d
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment