Skip to content

Commit

Permalink
also link to CUDA::cufft_static in case of BUILD_SHARED_LIBS=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorburger committed Jun 7, 2024
1 parent b236c71 commit d4bf550
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/cudaarithm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ if(ENABLE_CUDA_FIRST_CLASS_LANGUAGE)
endif()
endif()
if(HAVE_CUFFT)
# static version requires seperable compilation which is incompatible with opencv's current library structure
list(APPEND optional_dependencies CUDA::cufft)
if(BUILD_SHARED_LIBS)
list(APPEND optional_dependencies CUDA::cufft)
else()
# static version requires seperable compilation which is incompatible with opencv's current library structure
# the cufft_static_nocallback variant does not requires seperable compilation. callbacks are currently not used.
list(APPEND optional_dependencies CUDA::cufft_static_nocallback)
endif()
endif()
else()
if(HAVE_CUBLAS)
Expand Down

0 comments on commit d4bf550

Please sign in to comment.