mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
In commitbbba701899(Link properties: must be transitive over private dependency on static library, 2019-12-06, v3.17.0-rc1~323^2) and commitaf9d4f24ae(Link properties: must be transitive over private dependency on static library, 2019-12-11, v3.17.0-rc1~305^2) we neglected to implement CMP0099 NEW behavior for `TARGET_PROPERTY` evaluation. Add policy CMP0166 to fix this.
9 lines
502 B
CMake
9 lines
502 B
CMake
set(expect [[
|
|
# file\(GENERATE\) produced:
|
|
main LINK_LIBRARIES: 'foo1' # not transitive
|
|
main LINK_DIRECTORIES: '[^';]*/Tests/RunCMake/GenEx-TARGET_PROPERTY/dirM;[^';]*/Tests/RunCMake/GenEx-TARGET_PROPERTY/dir1'
|
|
main LINK_OPTIONS: '-optM;-opt1'
|
|
main LINK_DEPENDS: '[^';]*/Tests/RunCMake/GenEx-TARGET_PROPERTY/TransitiveLink-CMP0166-OLD-build/depM;[^';]*/Tests/RunCMake/GenEx-TARGET_PROPERTY/TransitiveLink-CMP0166-OLD-build/dep1'
|
|
]])
|
|
include(${CMAKE_CURRENT_LIST_DIR}/TransitiveLink-check-common.cmake)
|