Skip to content

Commit

Permalink
conan: fix custom stdgpu CMake modules
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Feb 22, 2024
1 parent 3d9a084 commit 1f173b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Mimics the behavior of stdgpu-dependencies.cmake exported by stdgpu for the CUDA backend

find_dependency(CUDAToolkit 11.0 REQUIRED)

# Using ${stdgpu_LIBRARIES} to allow the target to be renamed using the "cmake_target_name" CMakeDeps property
target_link_libraries(${stdgpu_LIBRARIES} INTERFACE CUDA::cudart)
set_property(TARGET ${stdgpu_LIBRARIES} PROPERTY INTERFACE_LINK_LIBRARIES CUDA::cudart APPEND)
set_property(TARGET ${stdgpu_LIBRARIES} PROPERTY INTERFACE_COMPILE_FEATURES cuda_std_17)
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Mimics the behavior of stdgpu-dependencies.cmake exported by stdgpu for the HIP backend

find_dependency(thrust 1.9.9 REQUIRED)

find_dependency(hip 5.1 REQUIRED)

# Using ${stdgpu_LIBRARIES} to allow the target to be renamed using the "cmake_target_name" CMakeDeps property
target_link_libraries(${stdgpu_LIBRARIES} INTERFACE hip::host)
set_property(TARGET ${stdgpu_LIBRARIES} PROPERTY INTERFACE_LINK_LIBRARIES hip::host APPEND)
set_property(TARGET ${stdgpu_LIBRARIES} PROPERTY INTERFACE_COMPILE_FEATURES hip_std_17)

0 comments on commit 1f173b8

Please sign in to comment.