[cmake-developers] [CMake 0015038]: Linking $<TARGET_OBJECTS:...> into a static library is broken with Xcode 6
Mantis Bug Tracker
mantis at public.kitware.com
Fri Jul 25 07:05:39 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15038
======================================================================
Reported By: Jamie Kirkpatrick
Assigned To:
======================================================================
Project: CMake
Issue ID: 15038
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-07-25 07:05 EDT
Last Modified: 2014-07-25 07:05 EDT
======================================================================
Summary: 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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-07-25 07:05 Jamie KirkpatrickNew Issue
======================================================================
More information about the cmake-developers
mailing list