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.
This commit is contained in:
Jeremy Tellaa
2017-05-03 14:33:01 +02:00
committed by Brad King
parent 9682027954
commit b888104e44

View File

@@ -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})