MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0006846 | CMake | CMake | public | 2008-04-17 17:39 | 2008-04-21 17:59 |
Reporter | Pino Toscano | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0006846: extra unneeded libraries are added | ||||
Description | Let's say to have the following (simplified) CMakeLists.txt: | add_library(mylib SHARED libsources...) | target_link_libraries(mylib lib1 lib2) | | add_executable(myapp appsources...) | target_link_libraries(myapp mylib) Then, when linking myapp, "-llib1 -llib2" is added on the linking line. The point is, is lib1 and lib2 are _private_ dependancies for mylib, why should they be added for myapp as well? After all, if myapp would need to use symbols from any of those, it must explicitely link to them (thus the developer must manually add the dependancy). Tested with CMake 2.4.8, and the "Unix Makefiles" generator (default on unix). | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-04-17 17:39 | Pino Toscano | New Issue | |||
2008-04-18 14:10 | Michael Lampe | Note Added: 0011437 | |||
2008-04-18 14:15 | Pino Toscano | Note Added: 0011438 | |||
2008-04-21 17:59 | Bill Hoffman | Status | new => closed | ||
2008-04-21 17:59 | Bill Hoffman | Note Added: 0011465 | |||
2008-04-21 17:59 | Bill Hoffman | Resolution | open => no change required |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|