[cmake-developers] [CMake 0014329]: COMPONENT ignored when appearing after DESTINATION's

Mantis Bug Tracker mantis at public.kitware.com
Wed Jul 31 16:59:05 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14329 
====================================================================== 
Reported By:                Andreas Pakulat
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14329
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-07-31 16:59 EDT
Last Modified:              2013-07-31 16:59 EDT
====================================================================== 
Summary:                    COMPONENT ignored when appearing after DESTINATION's
Description: 
It seems that unlike what the documentation suggests the position of the
"COMPONENT" part of an install() command is not arbitrary. The attached project
shows that the generated cmake_install.cmake file has the 'Unspecified'
component set for the 'foo' target, but the expected 'applications' component
set for the 'bar' target.

The only difference between both is that the 'bar' target has COMPONENT before
the various DESTINATION entries and 'foo' has COMPONENT after them.

I tried CMake 2.8.11.2, 2.8.10 and 2.8.8 and all of them show the same incorrect
(IMO) behaviour.

Steps to Reproduce: 
1. Run cmake on the attached minimal example
2. Inspect cmake_install.cmake and verify the components used for the 'foo' and
'bar' targets respectively
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-07-31 16:59 Andreas PakulatNew Issue                                    
2013-07-31 16:59 Andreas PakulatFile Added: cmaketestcase.tar.gz                
   
======================================================================




More information about the cmake-developers mailing list