mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-03 22:30:29 +00:00
cmMakefile: Remove ALIAS check
This method is only called from the cmPlugin API, which predates ALIAS targets and is obsolete.
This commit is contained in:
@@ -1250,13 +1250,6 @@ void cmMakefile::AddLinkDirectoryForTarget(const std::string& target,
|
|||||||
{
|
{
|
||||||
cmTargets::iterator i = this->Targets.find(target);
|
cmTargets::iterator i = this->Targets.find(target);
|
||||||
if (i != this->Targets.end()) {
|
if (i != this->Targets.end()) {
|
||||||
if (this->IsAlias(target)) {
|
|
||||||
std::ostringstream e;
|
|
||||||
e << "ALIAS target \"" << target << "\" "
|
|
||||||
<< "may not be linked into another target.";
|
|
||||||
this->IssueMessage(cmake::FATAL_ERROR, e.str());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
i->second.AddLinkDirectory(d);
|
i->second.AddLinkDirectory(d);
|
||||||
} else {
|
} else {
|
||||||
cmSystemTools::Error(
|
cmSystemTools::Error(
|
||||||
|
|||||||
Reference in New Issue
Block a user