[cmake-developers] CPackComponentsDEB-components-depend2 test fails

Raffi Enficiaud raffi.enficiaud at mines-paris.org
Fri Jul 5 05:04:58 EDT 2019


On 04.07.19 23:55, Rolf Eike Beer wrote:
> Am Donnerstag, 4. Juli 2019, 23:33:22 CEST schrieb Rolf Eike Beer:
>> Raffi Enficiaud wrote:
>>> [...]
>>> is not creating a shared library by default on this distribution or is
>>> interacting with other options you may have passed?
>>> What if you explicitly write those lines like this:
>>>
>>> add_library(mylib SHARED mylib.cpp)
> 
> I have looked into the library deb file: in case it is a static library it 
> contains /usr/lib64/libmylib.a, in case of a shared library it only contains 
> an empty /usr.
> 

Thanks for the feedback. What if now you replace "ARCHIVE" by "LIBRARY"
in the same file, in the following command?

install(TARGETS mylib
  ARCHIVE
  DESTINATION ${CMAKE_INSTALL_LIBDIR}
  COMPONENT libraries)

If this fixes the issue, I'll file a PR.
Thanks,
Raffi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20190705/70aff584/attachment.sig>


More information about the cmake-developers mailing list