OpenCL lib
This commit is contained in:
@@ -460,15 +460,11 @@ if (NOT CROSSTOOLS)
|
|||||||
|
|
||||||
find_package(OpenCL QUIET) #OpenCL_VERSION_STRING
|
find_package(OpenCL QUIET) #OpenCL_VERSION_STRING
|
||||||
if(OpenCL_FOUND)
|
if(OpenCL_FOUND)
|
||||||
set(_opencl_lib OpenCL::OpenCL)
|
|
||||||
if(${CMAKE_VERSION} VERSION_LESS "3.7.0")
|
|
||||||
target_link_libraries(_opencl_lib OpenCL)
|
|
||||||
endif()
|
|
||||||
set(_opencl_inc "${OpenCL_INCLUDE_DIRS}")
|
set(_opencl_inc "${OpenCL_INCLUDE_DIRS}")
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(_opencl_inc "${OpenCL_INCLUDE_DIRS}/Headers")
|
set(_opencl_inc "${OpenCL_INCLUDE_DIRS}/Headers")
|
||||||
endif()
|
endif()
|
||||||
pip_module(opencl "${_opencl_lib}" "PIP OpenCL support" "${_opencl_inc}" "" " (${OpenCL_VERSION_STRING})")
|
pip_module(opencl "OpenCL" "PIP OpenCL support" "${_opencl_inc}" "" " (${OpenCL_VERSION_STRING})")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user