From 76c76b48c58a6b9dcb37c0ede27e0969bf3e9887 Mon Sep 17 00:00:00 2001 From: peri4 Date: Mon, 20 Nov 2023 21:19:14 +0300 Subject: [PATCH] OpenCL lib --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index de1f3925..bba72ee9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -460,15 +460,11 @@ if (NOT CROSSTOOLS) find_package(OpenCL QUIET) #OpenCL_VERSION_STRING 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}") if(APPLE) set(_opencl_inc "${OpenCL_INCLUDE_DIRS}/Headers") 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()