
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.
11 lines
311 B
CMake
11 lines
311 B
CMake
include(${RunCMake_TEST_BINARY_DIR}/target_files.cmake)
|
|
check_files(${RunCMake_TEST_BINARY_DIR}/out
|
|
${StaticTop_TARGET_FILE}
|
|
${StaticMiddle_TARGET_FILE}
|
|
${StaticNone_TARGET_FILE}
|
|
${StaticPreBuild_TARGET_FILE}
|
|
${StaticPreLink_TARGET_FILE}
|
|
${StaticPostBuild_TARGET_FILE}
|
|
${StaticCc_TARGET_FILE}
|
|
)
|