From 86bc6ef12103e1a18bce6bad40d347c4b0b98186 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 8 Jul 2024 13:31:04 +0200 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 7c3ef33e..1d98348d 100644 --- a/CMake/dcmtkMacros.cmake +++ b/CMake/dcmtkMacros.cmake @@ -55,11 +55,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