[CMake] CPack RPM with COMPONENTS packaging

Eric Noulard eric.noulard at gmail.com
Thu Mar 21 08:08:19 EDT 2013


2013/3/20 Theodore Papadopoulo <Theodore.Papadopoulo at inria.fr>:
> -----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 ...).

Yes right off-course I make a confusion and forgot we
write
then configure etc...

We need \@.

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


More information about the CMake mailing list