Commit 2e94fecd authored by He Junyan's avatar He Junyan Committed by Tom Stellard

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: He Junyan's avatarJunyan He <junyan.he@linux.intel.com>
parent 44b7701c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment