From: Gert Wollny Date: Tue, 19 Mar 2024 14:24:15 +0000 (+0100) Subject: Don't add executables to cmake exports X-Git-Tag: archive/raspbian/3.6.8-6+rpi1~1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ff83ee19f4640dd503a3d7e1b450a6f4d27801e0;p=dcmtk.git 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 --- diff --git a/CMake/dcmtkMacros.cmake b/CMake/dcmtkMacros.cmake index 6cbce0a9..7af09c4a 100644 --- a/CMake/dcmtkMacros.cmake +++ b/CMake/dcmtkMacros.cmake @@ -60,11 +60,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()