ENH: Report an error if the target does not exists

This commit is contained in:
Andy Cedilnik 2005-12-15 12:01:28 -05:00
parent d2689c95a1
commit 5966baeec3
1 changed files with 7 additions and 1 deletions

View File

@ -47,8 +47,14 @@ bool cmInstallTargetsCommand::InitialPass(std::vector<std::string> const& args)
tgts[*s].SetInstallPath(args[0].c_str());
tgts[*s].SetRuntimeInstallPath(runtime_dir.c_str());
}
else
{
std::string str = "Cannot find target: \"" + *s + "\" to install.";
this->SetError(str.c_str());
return false;
}
}
return true;
}