summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2017-09-14 11:15:08 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-26 13:11:04 (GMT)
commit494906a8a21f44e9233632d9be7f93ee3990aaaf (patch)
tree027746c20b4cc38e33f4ec9e30e295c2d89da23a /Source/cmAddLibraryCommand.cxx
parentfe4b25ec2fa09a50b6ffbfcf29e118afdfba0659 (diff)
downloadCMake-494906a8a21f44e9233632d9be7f93ee3990aaaf.zip
CMake-494906a8a21f44e9233632d9be7f93ee3990aaaf.tar.gz
CMake-494906a8a21f44e9233632d9be7f93ee3990aaaf.tar.bz2
Add support for IMPORTED GLOBAL targets to be aliased
Issue: #15569 Issue: #17197
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 31c2ecf..9129047 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -256,13 +256,6 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args,
this->SetError(e.str());
return false;
}
- if (aliasedTarget->IsImported()) {
- std::ostringstream e;
- e << "cannot create ALIAS target \"" << libName << "\" because target \""
- << aliasedName << "\" is IMPORTED.";
- this->SetError(e.str());
- return false;
- }
this->Makefile->AddAlias(libName, aliasedName);
return true;
}