diff options
author | Brad King <brad.king@kitware.com> | 2017-05-04 14:31:39 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-04 14:31:47 (GMT) |
commit | a83250880ad511d92d96bfd860873b9c79c0f462 (patch) | |
tree | f208f5cab4d3328604c271c0140df2f689fc3e10 /Modules | |
parent | 71595858b83b37bc855028b5eefaa0dfcc94a511 (diff) | |
parent | b888104e44b48628eecfb56e8b74704c04b44f5e (diff) | |
download | CMake-a83250880ad511d92d96bfd860873b9c79c0f462.zip CMake-a83250880ad511d92d96bfd860873b9c79c0f462.tar.gz CMake-a83250880ad511d92d96bfd860873b9c79c0f462.tar.bz2 |
Merge topic 'FindOpenCL-AMDAPPSDKROOT'
b888104e FindOpenCL: add AMDAPPSDKROOT into paths for OpenCL library
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !792
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenCL.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindOpenCL.cmake b/Modules/FindOpenCL.cmake index 3eca5e1..de78e7e 100644 --- a/Modules/FindOpenCL.cmake +++ b/Modules/FindOpenCL.cmake @@ -117,7 +117,11 @@ if(WIN32) endif() else() find_library(OpenCL_LIBRARY - NAMES OpenCL) + NAMES OpenCL + ENV AMDAPPSDKROOT + PATH_SUFFIXES + lib/x86_64 + lib/x64) endif() set(OpenCL_LIBRARIES ${OpenCL_LIBRARY}) |