summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0027/CMP0027-OLD.cmake
blob: 404217de7ab118a9871b96a0db45ca4da317b2d6 (plain)
1
2
3
4
5
6
7
8
9
10

enable_language(CXX)

cmake_policy(SET CMP0027 OLD)

add_library(testTarget UNKNOWN IMPORTED)
set_property(TARGET testTarget PROPERTY INTERFACE_INCLUDE_DIRECTORIES "/does/not/exist")

add_library(userTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
target_link_libraries(userTarget PRIVATE $<1:testTarget>)