Skip to content

Commit b9943ee

Browse files
davidrohrsawenzel
authored andcommitted
fix stupid misplaced alias...
1 parent ef9360e commit b9943ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dependencies/FindO2GPU.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ if(ENABLE_OPENCL2)
126126
OR OPENCL2_ENABLED_AMD
127127
OR OPENCL2_ENABLED_SPIRV)
128128
set(OPENCL2_ENABLED ON)
129-
add_library(ROCm::rocThrust ALIAS rocthrust)
130-
131129
message(
132130
STATUS
133131
"Found OpenCL 2 (${OpenCL_VERSION_STRING} ; AMD ${OPENCL2_ENABLED_AMD} ${CLANG_OCL} ; SPIR-V ${OPENCL2_ENABLED_SPIRV} ${LLVM_SPIRV} with CLANG ${LLVM_PACKAGE_VERSION})"
@@ -182,6 +180,7 @@ if(ENABLE_HIP)
182180
endif()
183181
if(hip_FOUND AND hipcub_FOUND AND rocthrust_FOUND AND rocprim_FOUND AND hip_HIPCC_EXECUTABLE)
184182
set(HIP_ENABLED ON)
183+
add_library(ROCm::rocThrust ALIAS rocthrust)
185184
message(STATUS "HIP Found (${hip_HIPCC_EXECUTABLE})")
186185
endif()
187186
endif()

0 commit comments

Comments
 (0)