[CMake] CPack are not packing dll

Eric Noulard eric.noulard at gmail.com
Thu Jun 14 17:43:25 EDT 2012


2012/6/13 Totte Karlsson <totte at dunescientific.com>:
> Hi,
>
> For a certain library, I changed my CMake file to using the following
>
> install (
>            TARGETS ${target}
>            RUNTIME DESTINATION bin
>            LIBRARY DESTINATION lib
>            ARCHIVE DESTINATION lib
>            COMPONENT c_api)
>
>
> It works fine "installing", but when running CPack, the dll is not packed,
> but the import lib is.

Which version of CPack ?
Which CPack generator ?
In which context (command line, VIsual Studio, Eclipse ) do you launch CPack?

Does CPack "announce" that it installs "c_api" component?

> Any hints on how to get that working? CPack 'worked' when using install(
> FILES....)

It should work, but we must miss some information in order to understand
why it doesn't....



-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list