Don't add executables to cmake exports
authorGert Wollny <gw.fossdev@gmail.com>
Mon, 8 Jul 2024 11:31:04 +0000 (13:31 +0200)
committerMathieu Malaterre <malat@debian.org>
Mon, 8 Jul 2024 11:31:04 +0000 (13:31 +0200)
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 7c3ef33e5809bbc44a604fc640d970a4b17dd20d..1d98348da91bad3bc6070419083f1d197d29f622 100644 (file)
@@ -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()