mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user