MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0014640 | CMake | CMake | public | 2013-12-09 08:59 | 2014-10-06 10:32 |
| Reporter | Arunmozhi | ||||
| Assigned To | |||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | OS | OS Version | |||
| Product Version | CMake 2.8.12 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0014640: PRIVATE linking with target_link_libraries propagates "usage requirements" for static libraries | ||||
| Description | I have projects in the structure shown below module (EXECUTABLE) | \-- submodule (STATIC_LIBRARY) | \-- subsubmodule (STATIC_LIBRARY) 'submodule' links with 'subsubmodule' using PRIVATE linking as below target_link_libraries(submodule PRIVATE subsubmodule) 'module' links with 'submodule'. It is expected that the 'module' does not get the public include directories of 'subsubmod'. However we see this happening in cmake 2.8.12. It is understood that the libraries linked with 'subsubmodule' are propagated to 'module' since 'subsubmodule' and 'submodule' are STATIC libraries. However this does not apply to the INCLUDE directories and COMPILE definitions. We also note that for SHARED libraries, the PRIVATE linking works fine. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5011/example.tar | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2013-12-09 08:59 | Arunmozhi | New Issue | |||
| 2013-12-09 08:59 | Arunmozhi | File Added: example.tar | |||
| 2013-12-09 10:13 | Brad King | Note Added: 0034759 | |||
| 2013-12-09 12:53 | Stephen Kelly | Note Added: 0034762 | |||
| 2013-12-09 13:00 | Brad King | Note Added: 0034763 | |||
| 2014-03-06 10:39 | Brad King | Status | new => resolved | ||
| 2014-03-06 10:39 | Brad King | Resolution | open => no change required | ||
| 2014-10-06 10:32 | Robert Maynard | Note Added: 0036934 | |||
| 2014-10-06 10:32 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||