MantisBT - CMake
View Issue Details
0007282CMakeCPackpublic2008-07-03 18:232008-07-22 10:44
Miguel Figueroa 
Douglas Gregor 
normalfeaturealways
closedfixed 
CMake-2-6 
CMake-2-6 
0007282: CPack components need to be in global scope
Currently the CPack component features depend on some variables such as:

CPACK_COMPONENTS_ALL
CPACK_COMPONENT_${CNAME}_GROUP
...

These variables are typically easier to set at the point where you are building the component, which might be nested in some hierarchy. For example, if you have the following hierarchy with a CMakeLists.txt at each level, then you need to export the variables up at each level.

/
/libs => set(CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} PARENT_SCOPE
/libs/any => set(CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} any PARENT_SCOPE)

These variables should be collected without the need to be set globally. Maybe a new command 'add_cpack_component' like the 'add_test' would be useful or having a CPackComponents.cmake file to collect components, such as tests are collected in CTestTestfile.cmake.

--Miguel
No tags attached.
Issue History
2008-07-03 18:23Miguel FigueroaNew Issue
2008-07-04 10:23Douglas GregorStatusnew => assigned
2008-07-04 10:23Douglas GregorAssigned To => Douglas Gregor
2008-07-22 10:44Douglas GregorStatusassigned => closed
2008-07-22 10:44Douglas GregorNote Added: 0012799
2008-07-22 10:44Douglas GregorResolutionopen => fixed
2008-07-22 10:44Douglas GregorFixed in Version => CMake-2-6

Notes
(0012799)
Douglas Gregor   
2008-07-22 10:44   
Fixed in CMake 2.6.1; use the macros cpack_add_component, cpack_add_component_group, etc., provided by the CPack modular.