[CMake] Using CPack to include shared libraries in rpms

Hendrik Sattler post at hendrik-sattler.de
Sat Feb 20 02:07:48 EST 2010


Am Samstag 20 Februar 2010 01:27:20 schrieb Robert Knapke:
> My CMake project links a boost python shared library when builiding the
> libraries and executables.  I am using CPack to make an rpm of my project,
> but the boost python shared library is not included in the rpm.  So when
>  the user tries to install the rpm, it asks for this boost python shared
>  library.  However, I do not want to make the user download and compile
>  boost.  Is there a way to include this library in the rpm using CPack?

At least for RPM and DEB, you do _not_ include foreign libraries in a package! 
Boost should be available pre-compiled as RPM. If not, ship it as additional 
RPM package.

HS


More information about the CMake mailing list