MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013211 | CMake | CMake | public | 2012-05-10 21:36 | 2012-10-01 13:22 |
Reporter | thanil | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Apple Mac | OS | Mac OS X | OS Version | 10.7.3 |
Product Version | CMake 2.8.8 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013211: CMake should not link shared libraries recursively | ||||
Description | If target A depends on a shared library B and B depends on a shared library C, then CMake will create linker directives to link A to both B and C, when it should only link A to B. This creates unnecessary dependencies in the case of shared libraries. | ||||
Steps To Reproduce | Attached file contains example CMake project with an executable A and two shared libraries B and C. Once cmake has been run from directory xxx xxx/CMakeFiles/a.dir/link.txt contains the following line: /usr/bin/gcc -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/a.dir/a.c.o -o a b/liblibb.dylib b/c/liblibc.dylib which shows that A will be linked to C when there is no reason to do so since these are shared libraries. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/4326/* | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-05-10 21:36 | thanil | New Issue | |||
2012-05-10 21:36 | thanil | File Added: cmake_link_bug.tar.gz | |||
2012-05-11 02:42 | Mathieu Malaterre | Note Added: 0029466 | |||
2012-05-11 07:53 | Brad King | Status | new => resolved | ||
2012-05-11 07:53 | Brad King | Resolution | open => no change required | ||
2012-10-01 13:22 | David Cole | Note Added: 0031126 | |||
2012-10-01 13:22 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|