Update Kokkos library in LAMMPS to v3.0
This commit is contained in:
15
lib/kokkos/cmake/Modules/FindTPLHPX.cmake
Normal file
15
lib/kokkos/cmake/Modules/FindTPLHPX.cmake
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
FIND_PACKAGE(HPX REQUIRED)
|
||||
#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)
|
||||
|
||||
Reference in New Issue
Block a user