From c3288af515cb3b5bd079a000cebccc7951ee756b Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 21 Mar 2025 12:45:44 +0100 Subject: [PATCH] Don't add executables to cmake exports Bug-Debian: https://bugs.debian.org/803304 Forwarded: not-needed CMake exports are used by other packages that compile and link against dcmtk. Because Debian moves some of these executables and also dosn't install the test executables, this import may fail leading to failure to configure the according package. =================================================================== Gbp-Pq: Name 07_dont_export_all_executables.patch --- CMake/dcmtkMacros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/dcmtkMacros.cmake b/CMake/dcmtkMacros.cmake index bd354693..a85e0f5c 100644 --- a/CMake/dcmtkMacros.cmake +++ b/CMake/dcmtkMacros.cmake @@ -59,11 +59,11 @@ macro(DCMTK_ADD_EXECUTABLE PROGRAM) endif() # Collect executable as part of global DCMTK_EXECUTABLE_TARGETS property - set_property(GLOBAL APPEND PROPERTY DCMTK_EXECUTABLE_TARGETS ${PROGRAM}) + #set_property(GLOBAL APPEND PROPERTY DCMTK_EXECUTABLE_TARGETS ${PROGRAM}) # declare installation files, also export DCMTKTargets.cmake install(TARGETS ${PROGRAM} - EXPORT DCMTKTargets + # EXPORT DCMTKTargets COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() -- 2.30.2