28051f1150
It is considered an error if the INTERFACE_INCLUDE_DIRECTORIES contains a directory which does not exist, which indicates a programmer error by the upstream, or a packaging error. One of the RunCMake.CompatibleInterface tests also needs to be updated due to this change. Non-existant includes were used in the test, but are not needed.
10 lines
261 B
CMake
10 lines
261 B
CMake
|
|
project(ImportedTarget)
|
|
|
|
add_library(testTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
|
|
|
|
add_library(imported UNKNOWN IMPORTED)
|
|
set_property(TARGET imported PROPERTY INTERFACE_INCLUDE_DIRECTORIES "/does/not/exist")
|
|
|
|
target_link_libraries(testTarget imported)
|