summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenCL.cmake
diff options
context:
space:
mode:
authorKirill Mavreshko <kimavr@gmail.com>2017-05-05 13:05:24 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-05 14:19:19 (GMT)
commitb259fe84ab5797076e56155d9198fc17afc32ba7 (patch)
tree0714ce98a61e770ee09af0e0b7090526b3dcd01a /Modules/FindOpenCL.cmake
parentb888104e44b48628eecfb56e8b74704c04b44f5e (diff)
downloadCMake-b259fe84ab5797076e56155d9198fc17afc32ba7.zip
CMake-b259fe84ab5797076e56155d9198fc17afc32ba7.tar.gz
CMake-b259fe84ab5797076e56155d9198fc17afc32ba7.tar.bz2
FindOpenCL: Add missing PATHS keyword
The change in commit b888104e44 (FindOpenCL: add AMDAPPSDKROOT into paths for OpenCL library, 2017-05-03) accidentally left out the `PATHS` keyword. Without it properly installed AMD APP SDK (OpenCL) cannot be detected. Tested on Ubuntu 16.04.
Diffstat (limited to 'Modules/FindOpenCL.cmake')
-rw-r--r--Modules/FindOpenCL.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindOpenCL.cmake b/Modules/FindOpenCL.cmake
index de78e7e..b8a7d82 100644
--- a/Modules/FindOpenCL.cmake
+++ b/Modules/FindOpenCL.cmake
@@ -118,6 +118,7 @@ if(WIN32)
else()
find_library(OpenCL_LIBRARY
NAMES OpenCL
+ PATHS
ENV AMDAPPSDKROOT
PATH_SUFFIXES
lib/x86_64