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
signature.asc
Description: OpenPGP digital signature
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers