aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/arrayfire/fix-dependency-clfft.patch
blob: 8072746e3ce0087fa63dc9cb19e949ea97d5deb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt
index f970da0..b543433 100644
--- a/src/backend/opencl/CMakeLists.txt
+++ b/src/backend/opencl/CMakeLists.txt
@@ -12,7 +12,8 @@ set_property(CACHE AF_OPENCL_BLAS_LIBRARY PROPERTY STRINGS "clBLAS" "CLBlast")
 
 af_deprecate(OPENCL_BLAS_LIBRARY AF_OPENCL_BLAS_LIBRARY)
 
-include(build_clFFT)
+find_package(clFFT CONFIG REQUIRED)
+add_library(clFFT::clFFT ALIAS clFFT)
 
 file(GLOB kernel_src kernel/*.cl kernel/KParam.hpp)