Files
lammps/lib/kokkos/cmake/Modules/FindTPLHPX.cmake
2022-05-05 11:44:47 -06:00

16 lines
432 B
CMake

FIND_PACKAGE(HPX REQUIRED 1.7.0)
#as of right now, HPX doesn't export correctly
#so let's convert it to an interface target
KOKKOS_CREATE_IMPORTED_TPL(HPX INTERFACE
LINK_LIBRARIES ${HPX_LIBRARIES}
INCLUDES ${HPX_INCLUDE_DIRS}
)
#this is a bit funky since this is a CMake target
#but HPX doesn't export itself correctly
KOKKOS_EXPORT_CMAKE_TPL(HPX)
#I would prefer all of this gets replaced with
#KOKKOS_IMPORT_CMAKE_TPL(HPX)