summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJunyan He <junyan.he@linux.intel.com>2013-05-15 14:57:53 +0800
committerTom Stellard <thomas.stellard@amd.com>2013-05-17 17:21:38 -0700
commit2e94fecdf5db60f9de261779cb0f0464d9566309 (patch)
tree3f3792db66c5afb7839769382242d1568b78fdf0 /cmake
parent44b7701c6ca95e51863e1236766379ef089871c6 (diff)
Modify the FindOpenCL.make to add the CL lib name
Some OpenCL lib's name is not libOpenCL.so. Some thing like libCL.so, libcl.so may exist, and in these cases the check failed. Add the names to fix this problem. Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindOpenCL.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/Modules/FindOpenCL.cmake b/cmake/Modules/FindOpenCL.cmake
index cc667140e..67b13d7dd 100644
--- a/cmake/Modules/FindOpenCL.cmake
+++ b/cmake/Modules/FindOpenCL.cmake
@@ -35,7 +35,8 @@
find_path(OPENCL_INCLUDE_PATH CL/opencl.h)
endif()
- find_library(OPENCL_opencl_LIBRARY OpenCL)
+ find_library(OPENCL_opencl_LIBRARY
+ NAMES OpenCL CL cl)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenCL