View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014044CMakeCMakepublic2013-03-27 08:502013-10-07 10:04
ReporterMatthias Maier 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionnot fixable 
PlatformMax OSX 10.7OSOS Version
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0014044: The Xcode generator produces an invalid target that will not get linked if it consists only of objects from object libraries
DescriptionExample code snippet:

  ADD_LIBRARY(foo OBJECT
    foo.cc
    )
  ADD_LIBRARY(bar SHARED
    $<TARGET_OBJECTS:foo>
    )

"$ xcodebuild -target bar" will compile foo.obj but libbar.dylib doesn't get linked.

As a workaround,

  ADD_LIBRARY(foo OBJECT
    foo.cc
    )
  ADD_LIBRARY(bar SHARED
    dummy.cc
    $<TARGET_OBJECTS:foo>
    )

does work as expected (links dummy.obj and foo.obj to a libbar.dylib).
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032707)
Brad King (manager)
2013-03-27 09:11

This is a known limitation of Xcode. Documentation was added for this limit a few months ago:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=51988a4f [^]
(0034018)
Robert Maynard (manager)
2013-10-07 10:04

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

 Issue History
Date Modified Username Field Change
2013-03-27 08:50 Matthias Maier New Issue
2013-03-27 09:11 Brad King Note Added: 0032707
2013-03-27 09:11 Brad King Status new => resolved
2013-03-27 09:11 Brad King Resolution open => not fixable
2013-10-07 10:04 Robert Maynard Note Added: 0034018
2013-10-07 10:04 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team