View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007282CMakeCPackpublic2008-07-03 18:232008-07-22 10:44
ReporterMiguel Figueroa 
Assigned ToDouglas Gregor 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in VersionCMake-2-6 
Summary0007282: CPack components need to be in global scope
DescriptionCurrently 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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0012799)
Douglas Gregor (developer)
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.

 Issue History
Date Modified Username Field Change
2008-07-03 18:23 Miguel Figueroa New Issue
2008-07-04 10:23 Douglas Gregor Status new => assigned
2008-07-04 10:23 Douglas Gregor Assigned To => Douglas Gregor
2008-07-22 10:44 Douglas Gregor Status assigned => closed
2008-07-22 10:44 Douglas Gregor Note Added: 0012799
2008-07-22 10:44 Douglas Gregor Resolution open => fixed
2008-07-22 10:44 Douglas Gregor Fixed in Version => CMake-2-6


Copyright © 2000 - 2018 MantisBT Team