diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/itk/var_libraries.patch | |
Diffstat (limited to 'vcpkg/ports/itk/var_libraries.patch')
| -rw-r--r-- | vcpkg/ports/itk/var_libraries.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/ports/itk/var_libraries.patch b/vcpkg/ports/itk/var_libraries.patch new file mode 100644 index 0000000..3cb4e7c --- /dev/null +++ b/vcpkg/ports/itk/var_libraries.patch @@ -0,0 +1,32 @@ +diff --git a/CMake/ITKModuleMacros.cmake b/CMake/ITKModuleMacros.cmake
+index da9f3a902..60420bb0a 100644
+--- a/CMake/ITKModuleMacros.cmake
++++ b/CMake/ITKModuleMacros.cmake
+@@ -162,9 +162,6 @@ macro(itk_module_impl)
+ foreach(dep IN LISTS ITK_MODULE_${itk-module}_DEPENDS)
+ list(APPEND ${itk-module}_LIBRARIES "${${dep}_LIBRARIES}")
+ endforeach()
+- if(${itk-module}_LIBRARIES)
+- list(REMOVE_DUPLICATES ${itk-module}_LIBRARIES)
+- endif()
+ endif()
+
+ if(EXISTS ${${itk-module}_SOURCE_DIR}/include)
+diff --git a/CMake/ITKModuleAPI.cmake b/CMake/ITKModuleAPI.cmake
+index af64d96dc..809335e6d 100644
+--- a/CMake/ITKModuleAPI.cmake
++++ b/CMake/ITKModuleAPI.cmake
+@@ -133,11 +133,10 @@ macro(itk_module_config ns)
+ endforeach()
+ unset(_${ns}_USED_MODULES)
+
+ foreach(
+ v
+- ${ns}_LIBRARIES
+- ${ns}_INCLUDE_DIRS
+- ${ns}_LIBRARY_DIRS
++ ${ns}_INCLUDE_DIRS
++ ${ns}_LIBRARY_DIRS
+ ${ns}_RUNTIME_LIBRARY_DIRS
+ ${ns}_FACTORY_NAMES
+ ${ns}_FACTORY_LIST)
|