View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015038CMake(No Category)public2014-07-25 07:052015-01-05 08:39
ReporterJamie Kirkpatrick 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS XOS Version10.10
Product VersionCMake 3.0 
Target VersionCMake 3.0.1Fixed in VersionCMake 3.0.1 
Summary0015038: Linking $<TARGET_OBJECTS:...> into a static library is broken with Xcode 6
DescriptionTrying to use $<TARGET_OBJECTS:...> to link an object target into a static library is broken with Xcode 6 because it uses separate flags for linking static libraries.
Steps To Reproduce- Create an object library target with a source file compiled in.
- Create a static library that links the object library in.
- Create a binary that uses something from the original source file and links the static library in.
- Compiling will result in undefined symbols.
Additional InformationPreviously the OTHER_LDFLAGS variable was respected but now it uses OTHER_LIBTOOLFLAGS which breaks things because the old variable was used to specify the list of extra object files to link into the static library target.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036464)
Jamie Kirkpatrick (reporter)
2014-07-25 08:17

I threw together a quick patch that fixes the issue, but the tests are now broken. I unfortunately don't have the time to work out how to fix them.

https://github.com/Kitware/CMake/pull/115 [^]
(0036478)
Brad King (manager)
2014-07-28 13:16

Thanks. The problem in the pull request is that the choice of build setting name depends on the type of the current target (STATIC or not) as well as the version of Xcode. Fixed here:

 Xcode: Fix static library creation for Xcode 6
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=608cf814 [^]
(0037605)
Robert Maynard (manager)
2015-01-05 08:39

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

 Issue History
Date Modified Username Field Change
2014-07-25 07:05 Jamie Kirkpatrick New Issue
2014-07-25 08:17 Jamie Kirkpatrick Note Added: 0036464
2014-07-28 13:16 Brad King Note Added: 0036478
2014-07-28 13:16 Brad King Assigned To => Brad King
2014-07-28 13:16 Brad King Status new => assigned
2014-07-28 13:16 Brad King Target Version => CMake 3.0.1
2014-07-31 14:46 Brad King Status assigned => resolved
2014-07-31 14:46 Brad King Resolution open => fixed
2014-07-31 14:46 Brad King Fixed in Version => CMake 3.0.1
2015-01-05 08:39 Robert Maynard Note Added: 0037605
2015-01-05 08:39 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team