Debian Codegraph @

origami/cmake/origami-config.cmake.in

raw
1
2 @PACKAGE_INIT@
3
4 include(CMakeFindDependencyMacro)
5 find_dependency(hip REQUIRED)
6
7 include("${CMAKE_CURRENT_LIST_DIR}/origami-targets.cmake")
8
9 block(SCOPE_FOR VARIABLES)
10 if(NOT TARGET origami::origami)
11 message(FATAL_ERROR "origami::origami target is missing")
12 endif()
13
14 get_target_property(link_libraries origami::origami INTERFACE_LINK_LIBRARIES)
15
16 if(link_libraries AND "hip::device" IN_LIST link_libraries)
17 message(FATAL_ERROR "Do not export targets with hip::device as an interface link library")
18 endif()
19 endblock()
20