[CMake] CPack-NSIS component-based installer lacking components page...might I be forgetting something?

Eric Noulard eric.noulard at gmail.com
Fri Jan 13 17:13:46 EST 2012


2012/1/13 Patrick Ryan <pryan at objectivity.ca>:
> Hi,
>
> I'm using CMake 2.8.6 to generate an NSIS installer. We have two
> separate projects; an application and a set of plugins to be used by
> the application. The plugins are composed of four separate components
> that can be selected during the installation (Filters, NonBSDPlugins,
> Readers, Writers). When built on its own, the plugins installer
> includes the 'Select Components' page as expected. When building the
> application, which also includes the plugins project, no components
> page appears.

How does the application "includes" the plugins project?


> My CPackConfig.cmake file has the following:
>
> SET(CPACK_COMPONENTS_ALL
> "BrandedRuntime;Development;Filters;NonBSDPlugins;Readers;Writers;Runtime;RuntimeLibraries;Unspecified")
>
> SET(CPACK_COMPONENT_UNSPECIFIED_HIDDEN "TRUE")
>
> SET(CPACK_COMPONENT_UNSPECIFIED_REQUIRED "TRUE")
>
> Am I missing anything blatantly obvious? I'm quite stuck and haven't
> been able to find anyone who's had a similar problem.

CPack does not work that well for
"multiple project in one package" installer.

see discussion here
http://public.kitware.com/Bug/view.php?id=11808

> I can provide more details if necessary...apologies if I haven't
> included enough.

Was your CPackConfig.cmake written by hand or generated
with include(CPack) ?

Did you include(CPack) twice?

Like one time in the application project and one time in the plugins project?
If yes tries to include it only once.
see related bugs with multiple CPack inclusion:
http://public.kitware.com/Bug/view.php?id=10751

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list