[cmake-developers] [CMake 0014726]: target_link_library may have option not to add dependencies, for archive target.
Mantis Bug Tracker
mantis at public.kitware.com
Sun Feb 2 22:06:15 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14726
======================================================================
Reported By: NAKAMURA Takumi
Assigned To:
======================================================================
Project: CMake
Issue ID: 14726
Category: CMake
Reproducibility: N/A
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-02-02 22:06 EST
Last Modified: 2014-02-02 22:06 EST
======================================================================
Summary: target_link_library may have option not to add
dependencies, for archive target.
Description:
add_library(foo_lib ...)
target_link_libraries(foo_lib bar_lib)
I understand it implies add_dependencies(foo_lib bar_lib).
In practice, foo_lib doesn't always require that bar_lib were up-to-date.
In other words, foo_lib and bar_lib might be built in parallel.
This issue makes parallel build too serialized and slow.
Even if lib(s) were split with objlib, archiver(ar cr) is serialized.
(When I tried, both objlib(s) can be built in parallel.)
Of course,
add_library(foobar_so SHARED ...)
target_link_libraries(foobar_so foo_lib)
I think it'd be reasonable to imply add_dependencies(foobar_so foo_lib bar_lib)
for foobar_so.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-02-02 22:06 NAKAMURA TakumiNew Issue
======================================================================
More information about the cmake-developers
mailing list