diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-21 21:01:13 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-06-30 21:14:20 (GMT) |
commit | 5bf9bfda3f364b27ca91eacab18ec4dad2cc59f7 (patch) | |
tree | cbcdca635c46d3612bb97b6aa8d280cb08420b7f | |
parent | f346d88d102c627e98f630ae1c9d26cc899f76d8 (diff) | |
download | CMake-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.cxx | 3 |
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; } |