summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-21 21:01:13 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-30 21:14:20 (GMT)
commit5bf9bfda3f364b27ca91eacab18ec4dad2cc59f7 (patch)
treecbcdca635c46d3612bb97b6aa8d280cb08420b7f
parentf346d88d102c627e98f630ae1c9d26cc899f76d8 (diff)
downloadCMake-5bf9bfda3f364b27ca91eacab18ec4dad2cc59f7.zip
CMake-5bf9bfda3f364b27ca91eacab18ec4dad2cc59f7.tar.gz
CMake-5bf9bfda3f364b27ca91eacab18ec4dad2cc59f7.tar.bz2
cmMakefile: Don't use string comparison to check directory level.
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 87292ea..53c2d4c 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;
}