summaryrefslogtreecommitdiff
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-12 10:13:15 +0100
committerBrad King <brad.king@kitware.com>2013-11-12 09:07:10 -0500
commit64f73b0fb630f3ecc2f94e3e5b4ab2d1cc117f50 (patch)
tree4216d47789b5c834db0beb6a1db68aa8cccbf8cc /Source/cmAddLibraryCommand.cxx
parent13da9f00245694d3dee9f4c9b245f0e3941284c5 (diff)
downloadcmake-64f73b0fb630f3ecc2f94e3e5b4ab2d1cc117f50.tar.gz
add_library: Fix INTERFACE on platforms with no shared libs (#14561)
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 4c591b61ba..e9c5d6b766 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -229,6 +229,7 @@ bool cmAddLibraryCommand
yet its linker language. */
if ((type != cmTarget::STATIC_LIBRARY) &&
(type != cmTarget::OBJECT_LIBRARY) &&
+ (type != cmTarget::INTERFACE_LIBRARY) &&
(this->Makefile->GetCMakeInstance()->GetPropertyAsBool(
"TARGET_SUPPORTS_SHARED_LIBS") == false))
{