summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-04 14:31:39 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-05-04 14:31:47 (GMT)
commita83250880ad511d92d96bfd860873b9c79c0f462 (patch)
treef208f5cab4d3328604c271c0140df2f689fc3e10 /Modules
parent71595858b83b37bc855028b5eefaa0dfcc94a511 (diff)
parentb888104e44b48628eecfb56e8b74704c04b44f5e (diff)
downloadCMake-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.cmake6
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})