mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
687a91967f
Revert commitf3ad061858(Add usage requirements to update direct link dependencies, 2022-01-12, v3.23.0-rc1~44^2) and the property storage updates in its predecessor commit193a999cd5(cmTarget: Add INTERFACE_LINK_LIBRARIES_DIRECT{,_EXCLUDE} backtrace storage, 2022-01-06, v3.23.0-rc1~44^2~1) from the 3.23 release branch. After initial experience using the feature in practice, additional design considerations have been raised for discussion in the original issue. To avoid rushing this for the 3.23 series, we've decided to revert the feature for now so it can be revised for a future release. Issue: #22496
12 lines
426 B
CMake
12 lines
426 B
CMake
add_library(FooStatic STATIC FooStatic.c)
|
|
|
|
add_library(FooObject1 OBJECT FooObject.c)
|
|
target_link_libraries(FooObject1 PRIVATE FooStatic)
|
|
add_executable(Transitive1 Transitive.c)
|
|
target_link_libraries(Transitive1 PRIVATE FooObject1)
|
|
|
|
add_library(FooObject2 OBJECT FooObject.c)
|
|
target_link_libraries(FooObject2 INTERFACE FooStatic)
|
|
add_executable(Transitive2 Transitive.c)
|
|
target_link_libraries(Transitive2 PRIVATE FooObject2)
|