We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b236c71 commit d4bf550Copy full SHA for d4bf550
modules/cudaarithm/CMakeLists.txt
@@ -17,8 +17,13 @@ if(ENABLE_CUDA_FIRST_CLASS_LANGUAGE)
17
endif()
18
19
if(HAVE_CUFFT)
20
- # static version requires seperable compilation which is incompatible with opencv's current library structure
21
- list(APPEND optional_dependencies CUDA::cufft)
+ if(BUILD_SHARED_LIBS)
+ list(APPEND optional_dependencies CUDA::cufft)
22
+ else()
23
+ # static version requires seperable compilation which is incompatible with opencv's current library structure
24
+ # the cufft_static_nocallback variant does not requires seperable compilation. callbacks are currently not used.
25
+ list(APPEND optional_dependencies CUDA::cufft_static_nocallback)
26
+ endif()
27
28
else()
29
if(HAVE_CUBLAS)
0 commit comments