[cmake-developers] CPackComponentsDEB-components-depend2 test fails
Rolf Eike Beer
eike at sf-mail.de
Fri Jul 5 05:39:36 EDT 2019
Am 2019-07-05 11:04, schrieb Raffi Enficiaud:
> 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)
It does show up in the lib.deb, but the test still fails:
152: -- CPack_error=CPackDeb: - Generating dependency list
152:
152: -- package='mylib-applications', dependencies=''
152: -- package='mylib-headers', dependencies='mylib-libraries (=
1.0.2), depend-headers'
152: -- package='mylib-libraries', dependencies='depend-default'
152: CMake Error at
/home/ebeer/repos/upstream/CMake/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-depend2.cmake:93
(message):
152: dpkg-deb checks failed:
152:
152: ;dpkg-deb:
152:
/home/ebeer/repos/build/CMake/Tests/CPackComponentsDEB/buildDEB-components-depend2/mylib-applications_1.0.2_amd64.deb:
152: Incorrect dependencies for package mylib-applications: '' does
not contain
152: any 'lib'
--
More information about the cmake-developers
mailing list