Files
CMake/Tests/RunCMake/InstallPackageInfo/ReferencesWronglyNamespacedTarget.cmake
T
Matthew Woehlke 9d83a1ed1f Tests: Rename certain CPS tests
Rename the RunCMake/PackageInfo and RunCMake/CpsExportImport tests to
indicate that they cover CPS generated by the install command. This
opens space for similar tests that will cover CPS generation via the
export command.
2025-02-25 12:18:13 -05:00

12 lines
255 B
CMake

find_package(
broken REQUIRED CONFIG
NO_DEFAULT_PATH
PATHS ${CMAKE_CURRENT_LIST_DIR}
)
add_library(foo INTERFACE)
target_link_libraries(foo INTERFACE wrong::lib)
install(TARGETS foo EXPORT foo DESTINATION .)
install(PACKAGE_INFO foo EXPORT foo)