View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015469CMakeCMakepublic2015-03-23 11:462015-11-02 09:13
ReporterAbigail Bunyan 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionno change required 
PlatformApple MacOSOS XOS Version10.10.2
Product VersionCMake 3.2.1 
Target VersionFixed in Version 
Summary0015469: Xcode projects misuses targets for ALL_BUILD; it should use a scheme instead
DescriptionWhen 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 InformationDebatably, 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).
TagsXcode
Attached Files

 Relationships
related to 0015441closedGregor Jasny Xcode generator does not generate scheme 

  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.

 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


Copyright © 2000 - 2018 MantisBT Team