View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013247CMakeCMakepublic2012-05-25 06:452012-10-01 13:23
Reporter4ertus2 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformWindowsOSWindows 7OS Version6.1
Product VersionCMake 2.8.7 
Target VersionFixed in Version 
Summary0013247: VC generator add all shared library deps for dependent targets
DescriptionI use lots of static libraries targets that are combined into resulting shared library (in example mylib.dll). After that I add executable that depends on resulting library only (ex. myprog.exe).

VC Generator add all the mylib.dll dependencies to myprog.exe link flags. It is strange behavior cause if some function is already in mylib.dll I don't need any dependencies and if it's not - I better define some library in target_link_libraries manually. In fact it could be a problem - not all functions are included in mylib.dll. And CMake try to hide the problem from me.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029565)
Brad King (manager)
2012-05-25 08:03

See this FAQ entry:

http://www.cmake.org/Wiki/CMake_FAQ#Why_are_libraries_linked_to_my_shared_library_included_when_something_links_to_it.3F [^]
(0031135)
David Cole (manager)
2012-10-01 13:23

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-05-25 06:45 4ertus2 New Issue
2012-05-25 08:03 Brad King Note Added: 0029565
2012-05-25 08:03 Brad King Status new => resolved
2012-05-25 08:03 Brad King Resolution open => no change required
2012-10-01 13:23 David Cole Note Added: 0031135
2012-10-01 13:23 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team