MantisBT - CMake
View Issue Details
0015169CMakeCPackpublic2014-09-22 15:362015-03-20 16:54
Sam Hartsfield 
Domen Vrankar 
normalminoralways
closedfixed 
LinuxLinux
CMake 3.0.2 
CMake 3.3 
0015169: CPackRPM: component-specific settings "fall through" to next component
When component support is enabled in CPackRPM, component-specific settings get applied not only to the specified component, but also to any subsequent components. Some of these settings can be unset for the latter components, but some cannot (e.g. CPACK_RPM_USER_BINARY_SPECFILE).
See attached example. For spec.in file, use a standard template (cpack -D CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE=1 -G RPM).
No tags attached.
txt CMakeLists.txt (859) 2014-09-22 15:36
https://public.kitware.com/Bug/file/5260/CMakeLists.txt
Issue History
2014-09-22 15:36Sam HartsfieldNew Issue
2014-09-22 15:36Sam HartsfieldFile Added: CMakeLists.txt
2014-12-08 03:58Domen VrankarAssigned To => Domen Vrankar
2014-12-08 03:58Domen VrankarStatusnew => assigned
2015-03-17 13:08Domen VrankarNote Added: 0038231
2015-03-17 13:08Domen VrankarStatusassigned => resolved
2015-03-17 13:08Domen VrankarResolutionopen => fixed
2015-03-20 16:54Domen VrankarStatusresolved => closed
2015-03-20 16:54Domen VrankarFixed in Version => CMake 3.3

Notes
(0038231)
Domen Vrankar   
2015-03-17 13:08   
Pushed fix to next:
http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=be08972 [^]

Patch encapsulates entire RPM generation into a function so there will be no more accidental attribute leaks between components.