comparison OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake @ 4427:30efda56500d

trying to enable TLS support in DCMTK
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 31 Dec 2020 15:16:18 +0100
parents 1657c8700974
children a9a596ed988d
comparison
equal deleted inserted replaced
4426:330c4a4c103b 4427:30efda56500d
129 ${DCMTK_SOURCES_DIR}/dcmjpls/libsrc/djencode.cc 129 ${DCMTK_SOURCES_DIR}/dcmjpls/libsrc/djencode.cc
130 ) 130 )
131 endif() 131 endif()
132 endif() 132 endif()
133 133
134
135 # New in Orthanc 1.9.0 for DICOM TLS
136 if (ENABLE_SSL)
137 # Must be the last command to add files to ${DCMTK_SOURCES},
138 # because of "PROPERTIES COMPILE_DEFINITIONS"
139 AUX_SOURCE_DIRECTORY(${DCMTK_SOURCES_DIR}/dcmtls/libsrc DCMTK_SOURCES)
140 include_directories(
141 ${DCMTK_SOURCES_DIR}/dcmtls/include
142 )
143 # The function "SSL_CTX_get0_param()" is available on OpenSSL
144 # 1.1.x that is used for static builds => TODO autodetect
145 set_source_files_properties(${DCMTK_SOURCES}
146 PROPERTIES COMPILE_DEFINITIONS "WITH_OPENSSL;HAVE_SSL_CTX_GET0_PARAM")
147 endif()
148
134 149
135 # This fixes crashes related to the destruction of the DCMTK OFLogger 150 # This fixes crashes related to the destruction of the DCMTK OFLogger
136 # http://support.dcmtk.org/docs-snapshot/file_macros.html 151 # http://support.dcmtk.org/docs-snapshot/file_macros.html
137 add_definitions( 152 add_definitions(
138 -DLOG4CPLUS_DISABLE_FATAL=1 153 -DLOG4CPLUS_DISABLE_FATAL=1