mirror of
https://github.com/reactos/CMake.git
synced 2024-12-21 11:09:08 +00:00
634bb33f3a
We can do this check only if the TargetName is non-empty, which means that we're evaluating INTERFACE_INCLUDE_DIRECTORIES from a linked dependency which was set using target_link_libraries. It is possible to have relative paths in INCLUDE_DIRECTORIES already in CMake 2.8.10.2, so that part will require a policy to fix.
9 lines
291 B
CMake
9 lines
291 B
CMake
|
|
project(RelativePathInInterface)
|
|
|
|
add_library(testTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
|
|
set_property(TARGET testTarget PROPERTY INTERFACE_INCLUDE_DIRECTORIES "$<1:foo>")
|
|
|
|
add_library(userTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
|
|
target_link_libraries(userTarget testTarget)
|