[cmake-developers] [CMake 0015217]: CPack make wrong dependencies between components

Mantis Bug Tracker mantis at public.kitware.com
Fri Oct 24 02:50:59 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15217 
====================================================================== 
Reported By:                sudakov_ivan
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15217
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-10-24 02:50 EDT
Last Modified:              2014-10-24 02:50 EDT
====================================================================== 
Summary:                    CPack make wrong dependencies between components
Description: 
I have three components: a,b,c and code:

install(FILES ${CMAKE_CURRENT_LIST_FILE} DESTINATION /tmp COMPONENT a)
install(FILES ${CMAKE_CURRENT_LIST_FILE} DESTINATION /tmp COMPONENT b)
install(FILES ${CMAKE_CURRENT_LIST_FILE} DESTINATION /tmp COMPONENT c) 

SET(CPACK_RPM_a_PACKAGE_REQUIRES "d")
SET(CPACK_RPM_c_PACKAGE_REQUIRES "e")

In result:
 a requires d - ok
 b requires d - wrong
 c requires e - ok

There is the same situation with PROVIDES

Additional Information: 
If I set REQUIRES for ALL components it's work fine:
SET(CPACK_RPM_a_PACKAGE_REQUIRES "d")
SET(CPACK_RPM_c_PACKAGE_REQUIRES "e")
SET(CPACK_RPM_b_PACKAGE_REQUIRES "")
 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-10-24 02:50 sudakov_ivan   New Issue                                    
======================================================================




More information about the cmake-developers mailing list