[CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

Eric Noulard eric.noulard at gmail.com
Tue Feb 8 15:10:51 EST 2011


2011/2/8 Clinton Stimpson <clinton at elemtech.com>:
>>
>> I also saw that warning with this example (there's nothing in this example
>> about a MONOLITHIC install):
>>
>> cmake_minimum_required(VERSION 2.8)
>> project(hello)
>> install(CODE "message(installing...)" COMPONENT Hello)
>> set(CPACK_COMPONENTS_ALL Hello)
>> set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1)
>> set(CPACK_ARCHIVE_COMPONENT_INSTALL 1)
>> include(CPack)
>>
>> $ cpack -G TGZ
>>
>> Why is it a warning if no groups are defined?  Is it because one should use
>> groups?
>> However, I can suppress that warning with
>> set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
>
> Oh sorry..  This isn't related...
> Anyway, I was seeing a different warning:
> CPack Warning: [TGZ] Some Components defined but NO component group: Ignoring
> component group.

Ok good.
I tried my best to generate warning about possible misuse of component setttings
However I did not include a way to turn those warnings OFF I'll try to do it
before 2.8.5, just in case I did "over-warn".

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


More information about the CMake mailing list