mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03: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:
1 parent
9682027954
commit
b888104e44
1 file changed
+5
-1
@@ -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