summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJeremy Tellaa <jeremy.tellaa@video-stitch.com>2017-05-03 12:33:01 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-03 15:53:25 (GMT)
commitb888104e44b48628eecfb56e8b74704c04b44f5e (patch)
tree005f54be9cc6b92f87d722ad3e4b7a53a66d18e0 /Modules
parent96820279541017402c1fe0852444aac68179ddb7 (diff)
downloadCMake-b888104e44b48628eecfb56e8b74704c04b44f5e.zip
CMake-b888104e44b48628eecfb56e8b74704c04b44f5e.tar.gz
CMake-b888104e44b48628eecfb56e8b74704c04b44f5e.tar.bz2
FindOpenCL: add AMDAPPSDKROOT into paths for OpenCL library
This path was only looked up for windows. The AMD SDK also exists for Linux, and we may want to use the OpenCL library for there.
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})