Skip to content

Commit 3ada7c4

Browse files
committed
also link to CUDA::cufft_static in case of BUILD_SHARED_LIBS=OFF
1 parent b236c71 commit 3ada7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cudaarithm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(ENABLE_CUDA_FIRST_CLASS_LANGUAGE)
1818
endif()
1919
if(HAVE_CUFFT)
2020
# static version requires seperable compilation which is incompatible with opencv's current library structure
21-
list(APPEND optional_dependencies CUDA::cufft)
21+
list(APPEND optional_dependencies CUDA::cufft${CUDA_LIB_EXT})
2222
endif()
2323
else()
2424
if(HAVE_CUBLAS)

0 commit comments

Comments
 (0)