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