diff options
author | Takenori Yamamoto <yamamoto.takenory@gmail.com> | 2017-10-15 06:18:17 (GMT) |
---|---|---|
committer | Takenori Yamamoto <yamamoto.takenory@gmail.com> | 2017-10-15 06:18:17 (GMT) |
commit | 060fd23313271df7c1c8f1c14a662edeff118a0e (patch) | |
tree | 1084734ebc2d68f7ddf96e8d960955fbd0aa3b17 /Modules | |
parent | 9628f0c00175ca53d5c58dbffbea8e89f5c6461a (diff) | |
download | CMake-060fd23313271df7c1c8f1c14a662edeff118a0e.zip CMake-060fd23313271df7c1c8f1c14a662edeff118a0e.tar.gz CMake-060fd23313271df7c1c8f1c14a662edeff118a0e.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenCL.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/FindOpenCL.cmake b/Modules/FindOpenCL.cmake index b8a7d82..ba87086 100644 --- a/Modules/FindOpenCL.cmake +++ b/Modules/FindOpenCL.cmake @@ -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}) |