Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Oct 20, 2024
1 parent f9def35 commit 36d1a4b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 16 deletions.
26 changes: 26 additions & 0 deletions ports/itk/cufftw.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/Modules/Filtering/FFT/CMakeLists.txt b/Modules/Filtering/FFT/CMakeLists.txt
index 3f87969..1b296ed 100644
--- a/Modules/Filtering/FFT/CMakeLists.txt
+++ b/Modules/Filtering/FFT/CMakeLists.txt
@@ -1,6 +1,6 @@
project(ITKFFT)

-if(ITK_USE_CUFFTW)
+if(0)
set(ITKFFT_LIBRARIES ITKFFT ${FFTWF_LIBRARIES})
else()
set(ITKFFT_LIBRARIES ITKFFT)
diff --git a/Modules/Filtering/FFT/src/CMakeLists.txt b/Modules/Filtering/FFT/src/CMakeLists.txt
index 83b176c..b51bc48 100644
--- a/Modules/Filtering/FFT/src/CMakeLists.txt
+++ b/Modules/Filtering/FFT/src/CMakeLists.txt
@@ -10,6 +10,9 @@ endif()
itk_module_add_library(ITKFFT ${ITKFFT_SRCS})

# this library is only needed if FFTW is used
+if(ITK_USE_CUFFTW)
+ target_link_libraries(ITKFFT LINK_PUBLIC CUDA::cufftw)
+endif()
if(ITK_USE_FFTWF
OR ITK_USE_FFTWD
AND NOT ITK_USE_CUFFTW)
13 changes: 0 additions & 13 deletions ports/itk/fftw.diff → ports/itk/find-fftw.diff
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,3 @@ index 7a77ae3..3e41f37 100644
endif()

# Add configuration with GPU
diff --git a/Modules/Filtering/FFT/CMakeLists.txt b/Modules/Filtering/FFT/CMakeLists.txt
index 3f87969..aa4db40 100644
--- a/Modules/Filtering/FFT/CMakeLists.txt
+++ b/Modules/Filtering/FFT/CMakeLists.txt
@@ -1,7 +1,7 @@
project(ITKFFT)

if(ITK_USE_CUFFTW)
- set(ITKFFT_LIBRARIES ITKFFT ${FFTWF_LIBRARIES})
+ set(ITKFFT_PUBLIC_DEPENDS ITKFFT ${FFTWF_LIBRARIES})
else()
set(ITKFFT_LIBRARIES ITKFFT)
endif()
4 changes: 2 additions & 2 deletions ports/itk/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ vcpkg_from_github(
#]]
HEAD_REF master
PATCHES
cuda.diff
double-conversion.patch
fftw.diff
find-fftw.diff
openjpeg.patch
openjpeg2.patch
var_libraries.patch
Expand Down Expand Up @@ -262,4 +263,3 @@ if("rtk" IN_LIST FEATURES)
)
endif()
vcpkg_install_copyright(FILE_LIST ${file_list})
message(FATAL_ERROR STOP)
2 changes: 1 addition & 1 deletion versions/i-/itk.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "dee4cb241631124dd93f36c779a0fc8b26210ad5",
"git-tree": "6a4994396ab935aa87b8305dc20a41da953fa70a",
"version": "5.4.0",
"port-version": 1
},
Expand Down

0 comments on commit 36d1a4b

Please sign in to comment.