diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-02-04 09:30:49 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-02-06 00:34:28 (GMT) |
commit | 4d46b1401f9d1624fa5afc3995844d7aebc7ccf4 (patch) | |
tree | e2396c9fab9f6c9e694ae3e281d0d28c8f6a446d /Source/cmAddLibraryCommand.cxx | |
parent | 1a915e89531adb426be6db6f648ef496ee8c38e8 (diff) | |
download | CMake-4d46b1401f9d1624fa5afc3995844d7aebc7ccf4.zip CMake-4d46b1401f9d1624fa5afc3995844d7aebc7ccf4.tar.gz CMake-4d46b1401f9d1624fa5afc3995844d7aebc7ccf4.tar.bz2 |
add_library(): Allow imported object libraries with multi-arch
Fixes: #21276
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index f262fac..92e04e4 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( |