Don't add executables to cmake exports
authorGert Wollny <gw.fossdev@gmail.com>
Tue, 19 Mar 2024 14:24:15 +0000 (15:24 +0100)
committerMichael R. Crusoe <crusoe@debian.org>
Tue, 19 Mar 2024 14:24:15 +0000 (15:24 +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 6cbce0a913650449d3de02a060f5ad0c72543de2..7af09c4af18f58c30fb022f8b20a821d8a36763d 100644 (file)
@@ -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()