View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015469 | CMake | CMake | public | 2015-03-23 11:46 | 2015-11-02 09:13 | ||||
Reporter | Abigail Bunyan | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | closed | Resolution | no change required | ||||||
Platform | Apple Mac | OS | OS X | OS Version | 10.10.2 | ||||
Product Version | CMake 3.2.1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015469: Xcode projects misuses targets for ALL_BUILD; it should use a scheme instead | ||||||||
Description | When generating an Xcode project from a CMakeLists.txt with one target, the resultant project contains three targets: the user's target, ALL_BUILD, and ZERO_CHECK. It then makes all targets depend on ZERO_CHECK, and makes ALL_BUILD depend on all other targets. However, the Xcode documentation specifies "Projects can contain one or more targets, each of which produces one product." - so ALL_BUILD is not the intended use of targets. CMake should instead create an Xcode scheme, which depends on all of the user's Xcode targets. | ||||||||
Additional Information | Debatably, ZERO_CHECK shouldn't be a target - and ZERO_CHECK's only build phase should instead be a build phase present in every other target. However, you could argue that it does produce a product (ie. the Xcode project itself). | ||||||||
Tags | Xcode | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0038277) Abigail Bunyan (reporter) 2015-03-23 11:47 |
(Presumably related to 0015441.) |
(0038278) Brad King (manager) 2015-03-23 11:54 |
The Xcode documentation quoted in the description is a high-level conceptual description, not an authoritative definition. Not all targets produce a product. Any add_custom_target call in CMake code will generate a target much like ALL_BUILD and ZERO_CHECK containing the specified custom commands. ZERO_CHECK needs to be a separate target on which all other depend so that its check runs exactly once even in a parallel build. This is all working as designed and intended. |
(0039743) Robert Maynard (manager) 2015-11-02 09:13 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-03-23 11:46 | Abigail Bunyan | New Issue | |
2015-03-23 11:46 | Abigail Bunyan | Tag Attached: Xcode | |
2015-03-23 11:47 | Abigail Bunyan | Note Added: 0038277 | |
2015-03-23 11:51 | Brad King | Relationship added | related to 0015441 |
2015-03-23 11:54 | Brad King | Note Added: 0038278 | |
2015-03-23 11:55 | Brad King | Status | new => resolved |
2015-03-23 11:55 | Brad King | Resolution | open => no change required |
2015-11-02 09:13 | Robert Maynard | Note Added: 0039743 | |
2015-11-02 09:13 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |