MantisBT - CMake
View Issue Details
0015006CMakeCMakepublic2014-07-04 02:422015-01-05 08:39
sudakov_ivan 
Brad King 
normalmajoralways
closedfixed 
linux x86-64fedora18
CMake 3.0 
CMake 3.1CMake 3.1 
0015006: AUTORCC doesn't work with OBJECT library
I wrote code: "add_library(foo OBJECT foo.cpp foo.rcc)". It doesn't compile by cmake. Can I use AUTORCC with OBJECT library?
No tags attached.
Issue History
2014-07-04 02:42sudakov_ivanNew Issue
2014-07-07 09:24Brad KingNote Added: 0036319
2014-07-07 09:25Brad KingStatusnew => acknowledged
2014-07-07 09:25Brad KingTarget Version => CMake 3.1
2014-07-07 14:24sudakov_ivanNote Added: 0036327
2014-07-07 14:31Brad KingNote Added: 0036328
2014-07-08 07:25sudakov_ivanNote Added: 0036329
2014-07-09 09:45Brad KingNote Edited: 0036319bug_revision_view_page.php?bugnote_id=36319#r1512
2014-07-14 15:12Brad KingNote Added: 0036381
2014-07-14 15:23Brad KingAssigned To => Brad King
2014-07-14 15:23Brad KingStatusacknowledged => assigned
2014-07-15 03:08sudakov_ivanNote Added: 0036384
2014-07-15 09:10Brad KingNote Added: 0036393
2014-07-15 09:10Brad KingStatusassigned => resolved
2014-07-15 09:10Brad KingResolutionopen => fixed
2014-07-15 09:10Brad KingFixed in Version => CMake 3.1
2015-01-05 08:39Robert MaynardNote Added: 0037587
2015-01-05 08:39Robert MaynardStatusresolved => closed

Notes
(0036319)
Brad King   
2014-07-07 09:24   
(edited on: 2014-07-09 09:45)
Coincidentally I was just working on a change to lift the restriction on custom command outputs that are not sources or headers. The draft of the commit is here:

 add_library: Allow arbitrary non-linked sources in OBJECT libraries
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2c470b77 [^]

(0036327)
sudakov_ivan   
2014-07-07 14:24   
Thank you for response. As I understand your changes will be in cmake 3.1. When will that release happen?
(0036328)
Brad King   
2014-07-07 14:31   
Re 0015006:0036327: Follow the "Roadmap" link in the navigation bar.

You can also try nightly binaries here:

 http://www.cmake.org/files/dev/?C=M;O=D [^]

Tonight's build should include this change so I would appreciate testing and feedback for your use case.
(0036329)
sudakov_ivan   
2014-07-08 07:25   
Ok. Thank you very much for quick feedback. We use cmake more and more and enjoy it!
(0036381)
Brad King   
2014-07-14 15:12   
Re 0015006:0036329: Can you please confirm that this solution works for you? Thanks.
(0036384)
sudakov_ivan   
2014-07-15 03:08   
I tried http://www.cmake.org/files/dev/?C=M;O=D [^] [^].
It works, thanks.
(0036393)
Brad King   
2014-07-15 09:10   
Great, thanks for testing.
(0037587)
Robert Maynard   
2015-01-05 08:39   
Closing resolved issues that have not been updated in more than 4 months