cmMakefile: Invert if() condition to remove else

This commit is contained in:
Stephen Kelly
2016-10-07 20:13:35 +02:00
parent 869037ee86
commit 6d98b15fc8

View File

@@ -1249,13 +1249,13 @@ void cmMakefile::AddLinkDirectoryForTarget(const std::string& target,
const std::string& d)
{
cmTargets::iterator i = this->Targets.find(target);
if (i != this->Targets.end()) {
i->second.AddLinkDirectory(d);
} else {
if (i == this->Targets.end()) {
cmSystemTools::Error(
"Attempt to add link directories to non-existent target: ",
target.c_str(), " for directory ", d.c_str());
return;
}
i->second.AddLinkDirectory(d);
}
void cmMakefile::InitializeFromParent(cmMakefile* parent)