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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
