File: 07_dont_export_all_executables.patch

package info (click to toggle)
dcmtk 3.6.9-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 95,648 kB
  • sloc: ansic: 426,874; cpp: 318,177; makefile: 6,401; sh: 4,341; yacc: 1,026; xml: 482; lex: 321; perl: 277
file content (27 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Don't add executables to cmake exports
 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. 
Bug-Debian: https://bugs.debian.org/803304
Author: Gert Wollny <gw.fossdev@gmail.com>
Forwarded: not-needed
Index: dcmtk/CMake/dcmtkMacros.cmake
===================================================================
--- dcmtk.orig/CMake/dcmtkMacros.cmake
+++ dcmtk/CMake/dcmtkMacros.cmake
@@ -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()