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:
Takenori Yamamoto 2017-10-15 15:18:17 +09:00
parent 9628f0c001
commit 060fd23313

View File

@ -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})