summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-13 14:57:20 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-13 14:57:20 (GMT)
commit3c4071bec469f10cd802c8db43f3558aa71bd73b (patch)
tree5864f57c427370b643e13e3d74c383656fa304c3 /Source
parent3822f5bcacf5076d8c1832e2dae57b47c1247f56 (diff)
parent64f73b0fb630f3ecc2f94e3e5b4ab2d1cc117f50 (diff)
downloadCMake-3c4071bec469f10cd802c8db43f3558aa71bd73b.zip
CMake-3c4071bec469f10cd802c8db43f3558aa71bd73b.tar.gz
CMake-3c4071bec469f10cd802c8db43f3558aa71bd73b.tar.bz2
Merge topic 'fix-INTERFACE-with-no-SHARED-libs'
64f73b0 add_library: Fix INTERFACE on platforms with no shared libs (#14561)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmAddLibraryCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 4c591b6..e9c5d6b 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))
{