From 5bf9bfda3f364b27ca91eacab18ec4dad2cc59f7 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 21 Jun 2015 23:01:13 +0200 Subject: [PATCH] cmMakefile: Don't use string comparison to check directory level. --- Source/cmMakefile.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 87292ea62..53c2d4c71 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -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; }