git-svn-id: svn://db.shs.com.ru/pip@827 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -450,7 +450,11 @@ if (NOT PIP_FREERTOS)
|
|||||||
pip_resources(CL_RES "src_opencl/resources.conf")
|
pip_resources(CL_RES "src_opencl/resources.conf")
|
||||||
add_library(pip_opencl ${PIP_LIB_TYPE} ${CPP_LIB_OPENCL} ${CL_RES})
|
add_library(pip_opencl ${PIP_LIB_TYPE} ${CPP_LIB_OPENCL} ${CL_RES})
|
||||||
add_dependencies(pip_opencl pip_rc)
|
add_dependencies(pip_opencl pip_rc)
|
||||||
|
if(${CMAKE_VERSION} VERSION_LESS "3.7.0")
|
||||||
|
target_link_libraries(pip_opencl pip OpenCL)
|
||||||
|
else()
|
||||||
target_link_libraries(pip_opencl pip OpenCL::OpenCL)
|
target_link_libraries(pip_opencl pip OpenCL::OpenCL)
|
||||||
|
endif()
|
||||||
list(APPEND LIBS_STATUS OpenCL)
|
list(APPEND LIBS_STATUS OpenCL)
|
||||||
list(APPEND PIP_LIBS_TARGETS pip_opencl)
|
list(APPEND PIP_LIBS_TARGETS pip_opencl)
|
||||||
set(OpenCL_FOUND ${OpenCL_LIBRARIES})
|
set(OpenCL_FOUND ${OpenCL_LIBRARIES})
|
||||||
|
|||||||
Reference in New Issue
Block a user