diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-14 19:04:17 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-14 19:04:17 (GMT) |
commit | 7baef756493caaabc226c39c4a8dad669b883d4d (patch) | |
tree | 9a69aa1e39e1ed41cd4663024ac3b0d8a763423c /Source | |
parent | 63255342c63fa60926c8cef5d0cdcf372f977b5f (diff) | |
download | CMake-7baef756493caaabc226c39c4a8dad669b883d4d.zip CMake-7baef756493caaabc226c39c4a8dad669b883d4d.tar.gz CMake-7baef756493caaabc226c39c4a8dad669b883d4d.tar.bz2 |
cmLocalGenerator: Assert that there is a parent.
If the CMakeLists.txt file does not exist, there must be a parent.
The case for the top-level of the project is already handled in
cmake::DoPreConfigureChecks.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 9aae5bc..492ea9d 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -198,10 +198,7 @@ void cmLocalGenerator::ReadInputFile() return; } - if(!this->Parent) - { - return; - } + assert(this->Parent); // The file is missing. Check policy CMP0014. cmMakefile* mf = this->Parent->GetMakefile(); |