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.
This commit is contained in:
parent
63255342c6
commit
7baef75649
@ -198,10 +198,7 @@ void cmLocalGenerator::ReadInputFile()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!this->Parent)
|
assert(this->Parent);
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// The file is missing. Check policy CMP0014.
|
// The file is missing. Check policy CMP0014.
|
||||||
cmMakefile* mf = this->Parent->GetMakefile();
|
cmMakefile* mf = this->Parent->GetMakefile();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user