Mercurial > hg > orthanc
diff Resources/CMake/DcmtkConfiguration.cmake @ 2157:f75611abd407
cmake option USE_DCMTK_361_PRIVATE_DIC
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Nov 2016 15:39:10 +0100 |
parents | cbebc5d072b0 |
children | 8b51b133bb8b |
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake Thu Nov 17 09:28:33 2016 +0100 +++ b/Resources/CMake/DcmtkConfiguration.cmake Thu Nov 17 15:39:10 2016 +0100 @@ -36,15 +36,20 @@ DownloadPackage(${DCMTK_MD5} ${DCMTK_URL} "${DCMTK_SOURCES_DIR}") - if (FirstRun AND NOT USE_DCMTK_361) - # If using DCMTK 3.6.0, backport the "private.dic" file from DCMTK - # 3.6.1 snapshot. This adds support for more private tags, and - # fixes some import problems with Philips MRI Achieva. - message("Using the dictionary of private tags from DCMTK 3.6.1") - configure_file( - ${ORTHANC_ROOT}/Resources/Patches/dcmtk-3.6.1-private.dic - ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic - COPYONLY) + if (FirstRun AND + NOT USE_DCMTK_361) + if (USE_DCMTK_361_PRIVATE_DIC) + # If using DCMTK 3.6.0, backport the "private.dic" file from DCMTK + # 3.6.1 snapshot. This adds support for more private tags, and + # fixes some import problems with Philips MRI Achieva. + message("Using the dictionary of private tags from DCMTK 3.6.1") + configure_file( + ${ORTHANC_ROOT}/Resources/Patches/dcmtk-3.6.1-private.dic + ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic + COPYONLY) + else() + message("Using the dictionary of private tags from DCMTK 3.6.0") + endif() endif()