mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
FindOpenCL: Add support for CUDA OpenCL on Linux
When setting CUDA_PATH, the include directory ($CUDA_PATH/include) was found, but libOpenCL.so was not found. This patch resloved the issue.
This commit is contained in:
1 parent
9628f0c001
commit
060fd23313
1 file changed
+4
-1
@@ -120,9 +120,12 @@ else()
|
||||
NAMES OpenCL
|
||||
PATHS
|
||||
ENV AMDAPPSDKROOT
|
||||
ENV CUDA_PATH
|
||||
PATH_SUFFIXES
|
||||
lib/x86_64
|
||||
lib/x64)
|
||||
lib/x64
|
||||
lib
|
||||
lib64)
|
||||
endif()
|
||||
|
||||
set(OpenCL_LIBRARIES ${OpenCL_LIBRARY})
|
||||
|
||||
Reference in new issue
Block a user