dcmtk/dcmtk-3.6.8-cmake-unversioned-datadir.patch

16 lines
1.0 KiB
Diff

--- dcmtk-3.6.8/CMake/GenerateDCMTKConfigure.cmake.orig 2024-02-03 10:25:49.563019822 +0100
+++ dcmtk-3.6.8/CMake/GenerateDCMTKConfigure.cmake 2024-02-03 10:26:28.249094925 +0100
@@ -202,9 +202,9 @@
# Modify the installation paths for configuration files, data files and documents
# by adding a subdirectory with the DCMTK name and version number
- set(CMAKE_INSTALL_FULL_SYSCONFDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/dcmtk-${DCMTK_COMPLETE_PACKAGE_VERSION}")
- set(CMAKE_INSTALL_FULL_DATADIR "${CMAKE_INSTALL_FULL_DATADIR}/dcmtk-${DCMTK_COMPLETE_PACKAGE_VERSION}")
- set(CMAKE_INSTALL_FULL_DOCDIR "${CMAKE_INSTALL_FULL_DOCDIR}-${DCMTK_COMPLETE_PACKAGE_VERSION}")
+ set(CMAKE_INSTALL_FULL_SYSCONFDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/dcmtk")
+ set(CMAKE_INSTALL_FULL_DATADIR "${CMAKE_INSTALL_FULL_DATADIR}/dcmtk")
+ set(CMAKE_INSTALL_FULL_DOCDIR "${CMAKE_INSTALL_FULL_DOCDIR}")
# These variables are defined as macros in osconfig.h and must end with a path separator
set(DCMTK_DEFAULT_CONFIGURATION_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/")