View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011667CMakeCMakepublic2011-01-06 16:492011-11-11 10:45
ReporterDavid Rogers 
Assigned ToDavid Cole 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.5Fixed in VersionCMake 2.8.5 
Summary0011667: Xcode Generator: Support for Build Setting conditions.
DescriptionFor each build setting, different values can be given for different specified conditions.

For example: Using different LDFLAGS on i386 vs x86_64. In the project file it is stored like this:

"OTHER_LDFLAGS[sdk=iphoneos*][arch=armv7]" = "";

Each additional condition is added in another set of square brackets.
TagsNo tags attached.
Attached Files

 Relationships
related to 0008179closedDavid Cole Mac XCode generator: build type depend XCODE_ATTRIBUTE_* would be nice 

  Notes
(0024771)
David Cole (manager)
2011-01-17 12:20

Do you have a concrete proposal for how you would like to see this "supported" from CMakeLists files?

Thanks.
(0024902)
David Rogers (reporter)
2011-01-19 03:20

Not exactly. Just off the top of my head, perhaps something like this?

set_target_property(${TARGETNAME} PROPERTY XCODE_ATTRIBUTE_OTHER_LDFLAGS "-lm" CONDITIONS "sdk=iphoneos*" "arch=armv7")
(0026160)
Johan Björk (reporter)
2011-04-09 11:52

This is fixed in CMake 'next'.
Syntax is
set_target_property(${TARGETNAME} PROPERTY XCODE_ATTRIBUTE_OTHER_LDFLAGS[sdk=iphoneos][arch=armv7] "-lm")
(0026672)
David Cole (manager)
2011-06-05 14:38

Fixed by this commit:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c519bb2bb60a95c8b9145af0d9c90900f5b48f3d [^]

Included in 2.8.5-rc1
(0027760)
David Cole (manager)
2011-11-11 10:45

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-01-06 16:49 David Rogers New Issue
2011-01-17 12:20 David Cole Note Added: 0024771
2011-01-17 12:20 David Cole Assigned To => David Cole
2011-01-17 12:20 David Cole Status new => assigned
2011-01-19 03:20 David Rogers Note Added: 0024902
2011-02-09 14:29 David Cole Assigned To David Cole =>
2011-02-09 14:29 David Cole Assigned To => David Cole
2011-02-09 14:29 David Cole Status assigned => backlog
2011-02-09 14:30 David Cole Assigned To David Cole =>
2011-04-09 11:52 Johan Björk Note Added: 0026160
2011-04-14 14:35 David Cole Assigned To => David Cole
2011-04-14 14:35 David Cole Status backlog => assigned
2011-04-14 14:35 David Cole Target Version => CMake 2.8.5
2011-06-05 14:38 David Cole Note Added: 0026672
2011-06-05 14:38 David Cole Status assigned => resolved
2011-06-05 14:38 David Cole Fixed in Version => CMake 2.8.5
2011-06-05 14:38 David Cole Resolution open => fixed
2011-06-05 14:41 David Cole Relationship added related to 0008179
2011-11-11 10:45 David Cole Note Added: 0027760
2011-11-11 10:45 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team