View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014329 | CMake | CMake | public | 2013-07-31 16:59 | 2016-06-10 14:31 | ||||
Reporter | Andreas Pakulat | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | Debian GNU/Linux | OS Version | unstable | |||||
Product Version | CMake 2.8.8 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014329: 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 | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() ![]() | ||||||||
Relationships | |
Relationships |
Notes | |
(0033640) Andreas Pakulat (reporter) 2013-07-31 17:12 |
Well, as just pointed out on the CMake mailinglist, my testcase is indeed incorrect. Unfortunately the docs do not make this clear but COMPONENT belongs to each individual DESTINATION, which actually makes sense. Interestingly specifying COMPONENT before the various DESTINATION's does seem to make it apply to all of them. So I guess this is a 'works as intended', though I think it would be good to better mark the groups in the docs. |
(0042336) Kitware Robot (administrator) 2016-06-10 14:29 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-07-31 16:59 | Andreas Pakulat | New Issue | |
2013-07-31 16:59 | Andreas Pakulat | File Added: cmaketestcase.tar.gz | |
2013-07-31 17:12 | Andreas Pakulat | Note Added: 0033640 | |
2013-07-31 17:17 | Eric NOULARD | File Added: CMakeLists.txt | |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042336 | |
2016-06-10 14:29 | Kitware Robot | Status | new => resolved |
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |