Skip to content

Commit

Permalink
[Backport MR-4910] COMP: Update DCMTK targets based on new DCMTK name…
Browse files Browse the repository at this point in the history
…space

Exported targets now have the DCMTK namespace as of DCMTK/dcmtk@c684bb3.

Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]
  • Loading branch information
jamesobutler authored and jcfr committed Oct 29, 2024
1 parent e18566d commit 07eb5d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Modules/ThirdParty/DCMTK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@ if(ITK_USE_SYSTEM_DCMTK)
set(ITKDCMTK_SYSTEM_INCLUDE_DIRS ${DCMTK_INCLUDE_DIRS})

# Module standard library var
set(ITKDCMTK_LIBRARIES ${DCMTK_LIBRARIES})
set(ITKDCMTK_LIBRARIES)
foreach(lib IN LISTS DCMTK_LIBRARIES)
if(TARGET DCMTK::${lib})
list(APPEND ITKDCMTK_LIBRARIES DCMTK::${lib})
else()
list(APPEND ITKDCMTK_LIBRARIES ${lib})
endif()
endforeach()

# When this module is loaded by an app, load DCMTK too.
set(ITKDCMTK_EXPORT_CODE_INSTALL "
Expand Down

0 comments on commit 07eb5d0

Please sign in to comment.