Mercurial > hg > orthanc
comparison OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake @ 4431:b7f27b116685
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Jan 2021 14:34:44 +0100 |
parents | f5d44e30b429 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4430:f5d44e30b429 | 4431:b7f27b116685 |
---|---|
132 endif() | 132 endif() |
133 | 133 |
134 | 134 |
135 # New in Orthanc 1.9.0 for DICOM TLS | 135 # New in Orthanc 1.9.0 for DICOM TLS |
136 if (ENABLE_DCMTK_NETWORKING AND ENABLE_SSL) | 136 if (ENABLE_DCMTK_NETWORKING AND 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) | 137 AUX_SOURCE_DIRECTORY(${DCMTK_SOURCES_DIR}/dcmtls/libsrc DCMTK_SOURCES) |
140 include_directories( | 138 include_directories( |
141 ${DCMTK_SOURCES_DIR}/dcmtls/include | 139 ${DCMTK_SOURCES_DIR}/dcmtls/include |
142 ) | 140 ) |
143 | 141 |
152 CHECK_LIBRARY_EXISTS(ssl "SSL_CTX_get0_param" "" HAVE_SSL_CTX_GET0_PARAM) | 150 CHECK_LIBRARY_EXISTS(ssl "SSL_CTX_get0_param" "" HAVE_SSL_CTX_GET0_PARAM) |
153 endif() | 151 endif() |
154 | 152 |
155 if (HAVE_SSL_CTX_GET0_PARAM) | 153 if (HAVE_SSL_CTX_GET0_PARAM) |
156 message("Have SSL_CTX_get0_param(): yes") | 154 message("Have SSL_CTX_get0_param(): yes") |
157 set_source_files_properties(${DCMTK_SOURCES} | 155 add_definitions(-DHAVE_SSL_CTX_GET0_PARAM=1) |
158 PROPERTIES COMPILE_DEFINITIONS "HAVE_SSL_CTX_GET0_PARAM") | |
159 else() | 156 else() |
160 message("Have SSL_CTX_get0_param(): no") | 157 message("Have SSL_CTX_get0_param(): no") |
161 endif() | 158 endif() |
162 | 159 |
163 add_definitions(-DWITH_OPENSSL=1) | 160 add_definitions(-DWITH_OPENSSL=1) |