Commit 6d98b15f authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmMakefile: Invert if() condition to remove else

parent 869037ee
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment