Skip to content

Commit bb86411

Browse files
committed
fix: make install error on ROCm
1 parent d7c07d0 commit bb86411

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/stdgpu/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ install(FILES "${stdgpu_SOURCE_DIR}/cmake/Findthrust.cmake"
185185
DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}"
186186
COMPONENT stdgpu)
187187

188-
install(FILES "${stdgpu_SOURCE_DIR}/cmake/${STDGPU_BACKEND_DIRECTORY}/determine_thrust_paths.cmake"
189-
DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}/${STDGPU_BACKEND_DIRECTORY}"
190-
COMPONENT stdgpu)
188+
if(STDGPU_BACKEND STREQUAL STDGPU_BACKEND_CUDA)
189+
install(FILES "${stdgpu_SOURCE_DIR}/cmake/${STDGPU_BACKEND_DIRECTORY}/determine_thrust_paths.cmake"
190+
DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}/${STDGPU_BACKEND_DIRECTORY}"
191+
COMPONENT stdgpu)
192+
endif()

0 commit comments

Comments
 (0)