aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dcmtk/dictionary_paths.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dcmtk/dictionary_paths.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dcmtk/dictionary_paths.patch')
-rw-r--r--vcpkg/ports/dcmtk/dictionary_paths.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/dcmtk/dictionary_paths.patch b/vcpkg/ports/dcmtk/dictionary_paths.patch
new file mode 100644
index 0000000..9e38f2a
--- /dev/null
+++ b/vcpkg/ports/dcmtk/dictionary_paths.patch
@@ -0,0 +1,26 @@
+diff --git a/CMake/GenerateDCMTKConfigure.cmake b/CMake/GenerateDCMTKConfigure.cmake
+index 8a59d44fa..8d3b4fc60 100644
+--- a/CMake/GenerateDCMTKConfigure.cmake
++++ b/CMake/GenerateDCMTKConfigure.cmake
+@@ -173,19 +173,11 @@ if(WIN32 AND NOT CYGWIN)
+
+ # Set dictionary path to the data dir inside install main dir (prefix)
+ if(DCMTK_DEFAULT_DICT STREQUAL "external")
+- if(DCMTK_USE_WIN32_PROGRAMDATA)
+- set(DCM_DICT_DEFAULT_PATH "${CMAKE_INSTALL_FULL_DATADIR}\\\\dicom.dic")
+- else()
+- set(DCM_DICT_DEFAULT_PATH "${DCMTK_PREFIX}\\\\${CMAKE_INSTALL_DATADIR}\\\\dcmtk\\\\dicom.dic")
+- endif()
++ set(DCM_DICT_DEFAULT_PATH "${CMAKE_INSTALL_FULL_DATADIR}\\\\dicom.dic")
+
+ # If private dictionary should be utilized, add it to default dictionary path.
+ if(ENABLE_PRIVATE_TAGS)
+- if(DCMTK_USE_WIN32_PROGRAMDATA)
+- set(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH};${CMAKE_INSTALL_FULL_DATADIR}\\\\private.dic")
+- else()
+- set(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH};${DCMTK_PREFIX}\\\\${CMAKE_INSTALL_DATADIR}\\\\dcmtk\\\\private.dic")
+- endif()
++ set(DCM_DICT_DEFAULT_PATH "${DCM_DICT_DEFAULT_PATH};${CMAKE_INSTALL_FULL_DATADIR}\\\\private.dic")
+ endif()
+
+ # Again, for Windows strip all / from path and replace it with \\.