commit | 2e42651dff43c4e962f03fc24281cbf446880ded | [log] [tgz] |
---|---|---|
author | Kyle Edwards <kyle.edwards@kitware.com> | Wed Jul 29 14:19:56 2020 -0400 |
committer | Brad King <brad.king@kitware.com> | Wed Aug 12 11:31:07 2020 -0400 |
tree | 5a1fa6f2098d9cb5bdc04c7f9285dc454c3a5ebf | |
parent | 0cd3b5d0ca8d541fc3769f467db71a07a95be7f6 [diff] |
Add option to optimize link dependencies for static libraries 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.