View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013289CMakeCMakepublic2012-06-09 03:032012-11-05 14:33
Reportermonaka 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformMacOSMacOSXOS Version10.6.8
Product VersionCMake 2.8.8 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013289: In some cases, add_library(<name> OBJECT <src> ...) failure with unexpected warnings.
DescriptionIn case TARGET_SUPPORT_SHARED_LIBS is false, Calling add_library(... OBJECT ...) will get warnings below.

"ADD_LIBRARY for library foobar is used with the MODULE option, but the target platform supports only STATIC libraries. Building it STATIC instead. This may lead to problems."

And type is forced to cmTarget::STATIC_LIBRARY.


Actually adding "object library" will succeed even if its target isn't support shared libs.
The current implementation is unsuitable, I think.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029657)
Brad King (manager)
2012-06-11 08:42

Thanks for the report and explanation. Fixed:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9a9b3e45 [^]
(0031447)
David Cole (manager)
2012-11-05 14:33

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

 Issue History
Date Modified Username Field Change
2012-06-09 03:03 monaka New Issue
2012-06-11 08:42 Brad King Note Added: 0029657
2012-06-11 08:42 Brad King Assigned To => Brad King
2012-06-11 08:42 Brad King Status new => resolved
2012-06-11 08:42 Brad King Resolution open => fixed
2012-06-11 08:42 Brad King Fixed in Version => CMake 2.8.9
2012-06-11 08:42 Brad King Target Version => CMake 2.8.9
2012-11-05 14:33 David Cole Note Added: 0031447
2012-11-05 14:33 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team