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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
