Files
CMake/Tests/RunCMake/LinkItemValidation/CMP0028-NEW-iface.cmake
T
Brad King 37a25072ea Tests: Rename RunCMake.{CMP0028 => LinkItemValidation}
Generalize the test name to prepare for cases beyond CMP0028.
2021-12-20 09:56:51 -05:00

8 lines
178 B
CMake

cmake_policy(SET CMP0028 NEW)
add_library(iface INTERFACE)
target_link_libraries(iface INTERFACE External::Library)
add_library(foo empty.cpp)
target_link_libraries(foo iface)