From b888104e44b48628eecfb56e8b74704c04b44f5e Mon Sep 17 00:00:00 2001 From: Jeremy Tellaa Date: Wed, 3 May 2017 14:33:01 +0200 Subject: 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. --- Modules/FindOpenCL.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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}) -- cgit v0.12