mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
Add an `OPTIMIZE_DEPENDENCIES` target property and supporting `CMAKE_OPTIMIZE_DEPENDENCIES` variable to optionally enable pruning and flattening of outgoing dependencies from static libraries. Since they do not actually link, they only depend on side effects of their dependencies. Therefore we can drop dependencies that contribute no side effects.
8 lines
334 B
ReStructuredText
8 lines
334 B
ReStructuredText
optimize-link-dependencies
|
|
--------------------------
|
|
|
|
* A new target property, :prop_tgt:`OPTIMIZE_DEPENDENCIES`, was added to
|
|
avoid unnecessarily building dependencies for a static library.
|
|
* A new variable, :variable:`CMAKE_OPTIMIZE_DEPENDENCIES`, was added to
|
|
initialize the :prop_tgt:`OPTIMIZE_DEPENDENCIES` target property.
|