cmGlobalGenerator: Don't use else after a return.
This commit is contained in:
parent
52919ac8ac
commit
80b433b05e
@ -87,8 +87,7 @@ bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::ostringstream e;
|
std::ostringstream e;
|
||||||
e <<
|
e <<
|
||||||
"Generator\n"
|
"Generator\n"
|
||||||
@ -98,7 +97,6 @@ bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
|
|||||||
"was specified.";
|
"was specified.";
|
||||||
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
||||||
@ -108,8 +106,6 @@ bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::ostringstream e;
|
std::ostringstream e;
|
||||||
e <<
|
e <<
|
||||||
"Generator\n"
|
"Generator\n"
|
||||||
@ -119,7 +115,6 @@ bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
|||||||
"was specified.";
|
"was specified.";
|
||||||
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string cmGlobalGenerator::SelectMakeProgram(
|
std::string cmGlobalGenerator::SelectMakeProgram(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user