Files
CMake/Tests/RunCMake/GenEx-TARGET_PROPERTY/RunCMakeTest.cmake
Brad King 8437141b53 Genex: Fix TARGET_PROPERTY lookup scope in transitive usage requirements
When `$<TARGET_PROPERTY:tgt,prop>` is used in an `INTERFACE_*` target
property for usage requirements, it may be evaluated in the context of a
dependent target in another directory.  Look up the `tgt` name in the
directory of the target whose property holds the expression so that
imported targets isolated to that directory are visible.

Fixes: #24163
2022-11-17 07:57:21 -05:00

23 lines
620 B
CMake

include(RunCMake)
run_cmake(ALIAS_GLOBAL)
run_cmake(BadInvalidName)
run_cmake(BadNonTarget)
run_cmake(BadSelfReference)
run_cmake(INCLUDE_DIRECTORIES)
run_cmake(LinkImplementationCycle1)
run_cmake(LinkImplementationCycle2)
run_cmake(LinkImplementationCycle3)
run_cmake(LinkImplementationCycle4)
run_cmake(LinkImplementationCycle5)
run_cmake(LinkImplementationCycle6)
run_cmake(LOCATION)
run_cmake(SOURCES)
block()
run_cmake(Scope)
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/Scope-build)
set(RunCMake_TEST_NO_CLEAN 1)
run_cmake_command(Scope-build ${CMAKE_COMMAND} --build . --config Debug)
endblock()