mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
Cleanup
This commit is contained in:
@@ -204,16 +204,12 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
{
|
||||
// create a function blocker and set it up
|
||||
cmLoadedCommand *f = new cmLoadedCommand();
|
||||
if (!initFunction)
|
||||
{
|
||||
this->SetError("Attempt to load command failed. "
|
||||
"No init function found.");
|
||||
return false;
|
||||
}
|
||||
(*initFunction)(&f->info);
|
||||
m_Makefile->AddCommand(f);
|
||||
return true;
|
||||
}
|
||||
this->SetError("Attempt to load command failed. "
|
||||
"No init function found.");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user