View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015194CMakeCMakepublic2014-10-03 13:342016-06-10 14:31
Reporterstopiccot 
Assigned ToKitware Robot 
PriorityhighSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOS XOSOS Version
Product VersionCMake 3.0.2 
Target VersionFixed in Version 
Summary0015194: Xcode projects fail with only object files
DescriptionGenerated project Xcode fails to build libraries with only object input files. Test repo:

https://github.com/stopiccot/cmake_xcode_bug [^]

Xcode fails to create output file for "output_library_bugged" target nevertheless reporting that build succeeded. Everything is fine for "output_library_fixed" target. This actually maybe an Xcode not a CMake bug but we should consider adding this workaround into CMake. Example of real world project that suffers from this issue - https://github.com/PixarAnimationStudios/OpenSubdiv. [^]
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036900)
Brad King (manager)
2014-10-03 14:21

This is a known limitation of Xcode and it is documented in the add_library command:

 http://www.cmake.org/cmake/help/v3.0/command/add_library.html [^]
 "Some native build systems may not like targets that have only object files, so consider adding at least one real source file to any target that references $<TARGET_OBJECTS:objlib>."
(0042643)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2014-10-03 13:34 stopiccot New Issue
2014-10-03 14:21 Brad King Note Added: 0036900
2014-10-03 14:22 Brad King Summary Bug in CMake Xcode generator => Xcode projects fail with only object files
2016-06-10 14:29 Kitware Robot Note Added: 0042643
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team