Skip to content

Commit 6405ca6

Browse files
committed
Link dcmimage privately to libtiff and libpng.
Link dcmimage privately to libtiff and libpng because they are not used by the interface. This avoids unnecessary dependencies. This should fix openSUSE Bug 1254123. Thanks to GitHub user "Vogtinator" for the proposal (see PR #138).
1 parent 14a98ca commit 6405ca6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dcmimage/libsrc/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ DCMTK_ADD_LIBRARY(dcmimage
2424
diyp2img.cc
2525
)
2626

27-
DCMTK_TARGET_LINK_MODULES(dcmimage oflog dcmdata dcmimgle)
28-
DCMTK_TARGET_LINK_LIBRARIES(dcmimage ${LIBTIFF_LIBS} ${LIBPNG_LIBS})
27+
DCMTK_TARGET_LINK_MODULES(dcmimage PUBLIC oflog dcmdata dcmimgle)
28+
DCMTK_TARGET_LINK_LIBRARIES(dcmimage PRIVATE ${LIBTIFF_LIBS} ${LIBPNG_LIBS})

0 commit comments

Comments
 (0)