[CMake] CPack RPM with COMPONENTS packaging

Theodore Papadopoulo Theodore.Papadopoulo at inria.fr
Wed Mar 20 12:32:23 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/20/2013 05:01 PM, Eric Noulard wrote:
> 2013/3/20 Theodore Papadopoulo <Theodore.Papadopoulo at inria.fr>:

>>> And do you observe differences when you do  that?
>> 
>> As I said above, no there is no difference in my case because the
>> set of file is fixed. But the difference will appear if a new
>> file is added in a component.
> 
> No I don't think so, but I shall check with an example.

I'm confident you will see the problem.

> Theoretical explanation is:  the variable (@ or $) get expanded 
> when CPack runs (i.e. at CPack time) not when CMake runs (i.e. at
> CMake time) so adding a file to the component implies 
> CMakeLists.txt change which will trigger CMake re-run then when
> CPack run the content of CPACK_RPM_* will be updated as well.

But then the $ should be escaped because the ${} are also expanded in
the string of the file(WRITE ...).

> I know NSIS should work since it has full component support the
> main difference being that NSIS always generate a single installer
> file whereas DEB and RPM do generate 1 file per component group. 
> see: cpack --help-variable CPACK_COMPONENTS_GROUPING
> 
> So yes DEB is very similar to RPM. I don't know MacOS BUNDLE enough
> to tell you the limitation.

We will see. Anyhow, we already have scripts for Mac and the mac
maintainer for now will probably prefer to use them... So as far as
DEB is very similar to RPM and NSIS works, that very nice for us.

	Thanks.

	Theo.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFJ5JcACgkQEr8WrU8nPV2YLgCgrpyuULNjhxW7PHIWqVNyuMKI
ceMAnjWvrbnkOsBN4/W4OYvjPAD/kOui
=CQHA
-----END PGP SIGNATURE-----


More information about the CMake mailing list