From 2f96641c03405639e838977e4424b8f9021f0f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Thu, 27 Jun 2019 16:34:45 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@827 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c095c503..9b86c362 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -450,7 +450,11 @@ if (NOT PIP_FREERTOS) pip_resources(CL_RES "src_opencl/resources.conf") add_library(pip_opencl ${PIP_LIB_TYPE} ${CPP_LIB_OPENCL} ${CL_RES}) add_dependencies(pip_opencl pip_rc) - target_link_libraries(pip_opencl pip OpenCL::OpenCL) + if(${CMAKE_VERSION} VERSION_LESS "3.7.0") + target_link_libraries(pip_opencl pip OpenCL) + else() + target_link_libraries(pip_opencl pip OpenCL::OpenCL) + endif() list(APPEND LIBS_STATUS OpenCL) list(APPEND PIP_LIBS_TARGETS pip_opencl) set(OpenCL_FOUND ${OpenCL_LIBRARIES})