Don't add executables to cmake exports
authorGert Wollny <gw.fossdev@gmail.com>
Tue, 18 Feb 2025 11:05:41 +0000 (12:05 +0100)
committerMathieu Malaterre <malat@debian.org>
Tue, 18 Feb 2025 11:05:41 +0000 (12:05 +0100)
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

index bd354693055bf0e971c8e68e5d45f946de4542c0..a85e0f5c932d5deee02a2384bd7b694a6d7cdfe3 100644 (file)
@@ -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()