diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-12 09:13:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-12 14:07:10 (GMT) |
commit | 64f73b0fb630f3ecc2f94e3e5b4ab2d1cc117f50 (patch) | |
tree | 4216d47789b5c834db0beb6a1db68aa8cccbf8cc /Source/cmAddLibraryCommand.cxx | |
parent | 13da9f00245694d3dee9f4c9b245f0e3941284c5 (diff) | |
download | CMake-64f73b0fb630f3ecc2f94e3e5b4ab2d1cc117f50.zip CMake-64f73b0fb630f3ecc2f94e3e5b4ab2d1cc117f50.tar.gz CMake-64f73b0fb630f3ecc2f94e3e5b4ab2d1cc117f50.tar.bz2 |
add_library: Fix INTERFACE on platforms with no shared libs (#14561)
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 1 |
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)) { |