mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
ENH: Report an error if the target does not exists
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user