mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 09:29:15 -05:00
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.
This commit is contained in:
committed by
Brad King
parent
b888104e44
commit
b259fe84ab
@@ -118,6 +118,7 @@ if(WIN32)
|
|||||||
else()
|
else()
|
||||||
find_library(OpenCL_LIBRARY
|
find_library(OpenCL_LIBRARY
|
||||||
NAMES OpenCL
|
NAMES OpenCL
|
||||||
|
PATHS
|
||||||
ENV AMDAPPSDKROOT
|
ENV AMDAPPSDKROOT
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
lib/x86_64
|
lib/x86_64
|
||||||
|
|||||||
Reference in New Issue
Block a user