MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014503 | CMake | CMake | public | 2013-10-22 05:16 | 2016-06-10 14:31 |
Reporter | icando | ||||
Assigned To | Kitware Robot | ||||
Priority | high | Severity | feature | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Any | OS | Any | OS Version | Any |
Product Version | CMake 2.8.12 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014503: Make a library can ``link to'' a objlib | ||||
Description | Objlib is useful implementing self-registration factories, where we rely on global/static variables' constructor to register itself in a factory. The major issue is linker will remove those symbols that are not referenced, and we can use objlib to force linking these symbols. Currently the caveat is we need to specify all objlib at add_executable, which makes it painful. It would be great if a library can specify objlib in target_link_libraries or some other new command, and it will pass those objlib all the way up to the executable, and executable will automatically include those objlibs as its source. In this way, we can maintain the alwayslink requirement where the library is defined, not at top-level. Thanks. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-10-22 05:16 | icando | New Issue | |||
2013-10-22 08:30 | Brad King | Assigned To | => Stephen Kelly | ||
2013-10-22 08:30 | Brad King | Status | new => assigned | ||
2013-10-22 08:33 | Brad King | Note Added: 0034214 | |||
2013-10-22 11:41 | Stephen Kelly | Note Added: 0034216 | |||
2013-10-22 11:42 | Stephen Kelly | Target Version | => CMake 3.0 | ||
2013-10-23 04:06 | icando | Note Added: 0034222 | |||
2013-10-23 04:07 | Stephen Kelly | Note Added: 0034223 | |||
2013-12-04 12:23 | Stephen Kelly | Target Version | CMake 3.0 => | ||
2013-12-16 18:38 | icando | Note Added: 0034783 | |||
2014-02-26 08:25 | Stephen Kelly | Relationship added | related to 0014151 | ||
2014-02-26 08:31 | Stephen Kelly | Relationship deleted | related to 0014151 | ||
2014-03-20 11:12 | Stephen Kelly | Note Added: 0035456 | |||
2014-03-20 11:12 | Stephen Kelly | Assigned To | Stephen Kelly => | ||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042400 | |||
2016-06-10 14:29 | Kitware Robot | Status | assigned => 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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|