MantisBT - CMake
View Issue Details
0013289CMakeCMakepublic2012-06-09 03:032012-11-05 14:33
monaka 
Brad King 
normalmajoralways
closedfixed 
MacMacOSX10.6.8
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013289: In some cases, add_library(<name> OBJECT <src> ...) failure with unexpected warnings.
In 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.
No tags attached.
Issue History
2012-06-09 03:03monakaNew Issue
2012-06-11 08:42Brad KingNote Added: 0029657
2012-06-11 08:42Brad KingAssigned To => Brad King
2012-06-11 08:42Brad KingStatusnew => resolved
2012-06-11 08:42Brad KingResolutionopen => fixed
2012-06-11 08:42Brad KingFixed in Version => CMake 2.8.9
2012-06-11 08:42Brad KingTarget Version => CMake 2.8.9
2012-11-05 14:33David ColeNote Added: 0031447
2012-11-05 14:33David ColeStatusresolved => closed

Notes
(0029657)
Brad King   
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   
2012-11-05 14:33   
Closing resolved issues that have not been updated in more than 4 months.