Mercurial > hg > orthanc
comparison Resources/CMake/OpenSslConfiguration.cmake @ 2448:862d943115f9
working on linux standard base
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jan 2018 18:04:11 +0100 |
parents | 74d0953a3681 |
children | d2f70c8f8bfd 26eec77abc76 |
comparison
equal
deleted
inserted
replaced
2447:878b59270859 | 2448:862d943115f9 |
---|---|
201 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") | 201 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") |
202 set_source_files_properties( | 202 set_source_files_properties( |
203 ${OPENSSL_SOURCES} | 203 ${OPENSSL_SOURCES} |
204 PROPERTIES COMPILE_DEFINITIONS | 204 PROPERTIES COMPILE_DEFINITIONS |
205 "OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN") | 205 "OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN") |
206 | |
207 elseif ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") | |
208 execute_process( | |
209 COMMAND ${PATCH_EXECUTABLE} -N ui_openssl.c -i ${ORTHANC_ROOT}/Resources/Patches/openssl-lsb.diff | |
210 WORKING_DIRECTORY ${OPENSSL_SOURCES_DIR}/crypto/ui | |
211 RESULT_VARIABLE Failure | |
212 ) | |
213 | |
214 if (Failure AND FirstRun) | |
215 message(FATAL_ERROR "Error while patching a file") | |
216 endif() | |
217 endif() | 206 endif() |
218 | 207 |
219 source_group(ThirdParty\\OpenSSL REGULAR_EXPRESSION ${OPENSSL_SOURCES_DIR}/.*) | 208 source_group(ThirdParty\\OpenSSL REGULAR_EXPRESSION ${OPENSSL_SOURCES_DIR}/.*) |
220 | 209 |
221 else() | 210 else() |