From 7baef756493caaabc226c39c4a8dad669b883d4d Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 14 May 2015 21:04:17 +0200 Subject: 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. --- Source/cmLocalGenerator.cxx | 5 +---- 1 file changed, 1 insertion(+), 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(); -- cgit v0.12