[CMake] generate multiple packages the easiest way

AKHRES Nader nader.akhres at laposte.net
Sat Feb 27 07:56:36 EST 2010


I guess I've found my issue.
I use a main script calling cmake command and passing CPACK_GENERATOR 
like this:
-DCPACK_GENERATOR

Maybe this don't work for list.
Is there any way to pass a list to command line cmake?


Le 27/02/2010 13:23, Eric Noulard a écrit :
> 2010/2/27 AKHRES Nader<nader.akhres at laposte.net>:
>    
>> Hello,
>>
>> I've looked at the archive but can't find exactly the answer suiting to my
>> case.
>> I need to create several packages (for instance nsis AND zip) of exactly the
>> same source tree (no components).
>> I've first try to use a list for CPACK_GENERATOR (SET(CPACK_GENERATOR "NSIS"
>> "ZIP")) but it generates only the first type package (nsis here).
>>
>> Is there a way to make it works?
>>      
> Yes the CPACK_GENERATOR is a list so:
>
> SET(CPACK_GENERATOR "NSIS;ZIP")
>
> should work the same is true for source package:
>
> SET(CPACK_SOURCE_GENERATOR "ZIP;TGZ")
>
>
>    



More information about the CMake mailing list