mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03:00
cmMakefile: Simplify GetCMakeInstance implementation.
No callers handle the possibility that it can return null, and that is no longer possible anyway.
This commit is contained in:
1 parent
6cd6d50871
commit
efcca9353f
1 file changed
+1
-5
@@ -3693,11 +3693,7 @@ bool cmMakefile::GetIsSourceFileTryCompile() const
|
||||
|
||||
cmake *cmMakefile::GetCMakeInstance() const
|
||||
{
|
||||
if ( this->LocalGenerator && this->LocalGenerator->GetGlobalGenerator() )
|
||||
{
|
||||
return this->LocalGenerator->GetGlobalGenerator()->GetCMakeInstance();
|
||||
}
|
||||
return 0;
|
||||
return this->LocalGenerator->GetGlobalGenerator()->GetCMakeInstance();
|
||||
}
|
||||
|
||||
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||
|
||||
Reference in new issue
Block a user