summaryrefslogtreecommitdiff
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-02-04 20:30:49 +1100
committerCraig Scott <craig.scott@crascit.com>2021-02-06 11:34:28 +1100
commit4d46b1401f9d1624fa5afc3995844d7aebc7ccf4 (patch)
treee2396c9fab9f6c9e694ae3e281d0d28c8f6a446d /Source/cmAddLibraryCommand.cxx
parent1a915e89531adb426be6db6f648ef496ee8c38e8 (diff)
downloadcmake-4d46b1401f9d1624fa5afc3995844d7aebc7ccf4.tar.gz
add_library(): Allow imported object libraries with multi-arch
Fixes: #21276
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index f262facc38..92e04e43c4 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -238,16 +238,6 @@ bool cmAddLibraryCommand(std::vector<std::string> const& args,
status.SetError("called with IMPORTED argument but no library type.");
return false;
}
- if (type == cmStateEnums::OBJECT_LIBRARY) {
- std::string reason;
- if (!mf.GetGlobalGenerator()->HasKnownObjectFileLocation(&reason)) {
- mf.IssueMessage(
- MessageType::FATAL_ERROR,
- "The OBJECT library type may not be used for IMPORTED libraries" +
- reason + ".");
- return true;
- }
- }
if (type == cmStateEnums::INTERFACE_LIBRARY) {
if (!cmGeneratorExpression::IsValidTargetName(libName)) {
status.SetError(cmStrCat(