mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-04 22:29:40 -06:00
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
23 lines
620 B
CMake
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()
|