View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015038 | CMake | (No Category) | public | 2014-07-25 07:05 | 2015-01-05 08:39 | ||||
Reporter | Jamie Kirkpatrick | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS X | OS Version | 10.10 | |||||
Product Version | CMake 3.0 | ||||||||
Target Version | CMake 3.0.1 | Fixed in Version | CMake 3.0.1 | ||||||
Summary | 0015038: Linking $<TARGET_OBJECTS:...> into a static library is broken with Xcode 6 | ||||||||
Description | Trying 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 Information | Previously 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
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 |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |