annotate OrthancFramework/Resources/CMake/OpenSslConfigurationStatic-1.1.1.cmake @ 5640:f7adfb22e20e

updated copyright, as Orthanc Team now replaces Osimis
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 May 2024 21:19:57 +0200
parents 48b8dae6dc77
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4904
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 # Orthanc - A Lightweight, RESTful DICOM Store
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 # Department, University Hospital of Liege, Belgium
5640
f7adfb22e20e updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5485
diff changeset
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium
f7adfb22e20e updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5485
diff changeset
5 # Copyright (C) 2024-2024 Orthanc Team SRL, Belgium
5485
48b8dae6dc77 upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5434
diff changeset
6 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
4904
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 #
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 # This program is free software: you can redistribute it and/or
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 # modify it under the terms of the GNU Lesser General Public License
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 # as published by the Free Software Foundation, either version 3 of
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 # the License, or (at your option) any later version.
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 #
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 # This program is distributed in the hope that it will be useful, but
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 # Lesser General Public License for more details.
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 #
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 # You should have received a copy of the GNU Lesser General Public
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 # License along with this program. If not, see
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 # <http://www.gnu.org/licenses/>.
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 SET(OPENSSL_SOURCES_DIR ${CMAKE_BINARY_DIR}/openssl-1.1.1k)
5434
aa1c09fa6632 changed location of third-party downloads
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5432
diff changeset
24 SET(OPENSSL_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/openssl-1.1.1k.tar.gz")
4904
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 SET(OPENSSL_MD5 "c4e7d95f782b08116afa27b30393dd27")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 if (IS_DIRECTORY "${OPENSSL_SOURCES_DIR}")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 set(FirstRun OFF)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 else()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 set(FirstRun ON)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 DownloadPackage(${OPENSSL_MD5} ${OPENSSL_URL} "${OPENSSL_SOURCES_DIR}")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 if (FirstRun)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 file(WRITE ${OPENSSL_SOURCES_DIR}/crypto/buildinf.h "
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 #define DATE \"\"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 #define PLATFORM \"\"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 #define compiler_flags \"\"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 ")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 file(WRITE ${OPENSSL_SOURCES_DIR}/crypto/bn_conf.h "")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 file(WRITE ${OPENSSL_SOURCES_DIR}/crypto/dso_conf.h "")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 configure_file(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 ${CMAKE_CURRENT_LIST_DIR}/../Patches/openssl-1.1.1-conf.h.in
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 ${OPENSSL_SOURCES_DIR}/include/openssl/opensslconf.h
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 # Apply the patches
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 execute_process(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 ${CMAKE_CURRENT_LIST_DIR}/../Patches/openssl-1.1.1k.patch
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 RESULT_VARIABLE Failure
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 if (Failure)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58 message(FATAL_ERROR "Error while patching a file")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 file(RENAME
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 ${OPENSSL_SOURCES_DIR}/include/openssl/e_os2.h
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63 ${OPENSSL_SOURCES_DIR}/include/openssl/e_os2_source.h)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65 # The following patch of "e_os2.h" prevents from building OpenSSL
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66 # as a DLL under Windows. Otherwise, symbols have inconsistent
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 # linkage if ${OPENSSL_SOURCES} is used to create a DLL (notably
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 # if building an Orthanc plugin such as PostgreSQL or MySQL).
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 file(WRITE ${OPENSSL_SOURCES_DIR}/include/openssl/e_os2.h "
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70 #include \"e_os2_source.h\"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 #if defined(_WIN32)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 # undef OPENSSL_EXPORT
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 # undef OPENSSL_IMPORT
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74 # undef OPENSSL_EXTERN
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 # undef OPENSSL_GLOBAL
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 # define OPENSSL_EXPORT
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77 # define OPENSSL_IMPORT
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78 # define OPENSSL_EXTERN extern
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79 # define OPENSSL_GLOBAL
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 #endif
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81 ")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83 else()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
84 message("The patches for OpenSSL have already been applied")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
85 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
88 -DOPENSSL_THREADS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89 -DOPENSSL_IA32_SSE2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
90 -DOPENSSL_NO_ASM
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
91 -DOPENSSL_NO_DYNAMIC_ENGINE
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
92 -DOPENSSL_NO_DEVCRYPTOENG
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
94 -DOPENSSL_NO_BF
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95 -DOPENSSL_NO_CAMELLIA
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
96 -DOPENSSL_NO_CAST
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
97 -DOPENSSL_NO_EC_NISTP_64_GCC_128
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 -DOPENSSL_NO_GMP
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
99 -DOPENSSL_NO_GOST
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100 -DOPENSSL_NO_HW
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 -DOPENSSL_NO_JPAKE
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102 -DOPENSSL_NO_IDEA
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103 -DOPENSSL_NO_KRB5
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104 -DOPENSSL_NO_MD2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105 -DOPENSSL_NO_MDC2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
106 #-DOPENSSL_NO_MD4 # MD4 is necessary for MariaDB/MySQL client
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
107 -DOPENSSL_NO_RC2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
108 -DOPENSSL_NO_RC4
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
109 -DOPENSSL_NO_RC5
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
110 -DOPENSSL_NO_RFC3779
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
111 -DOPENSSL_NO_SCTP
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112 -DOPENSSL_NO_STORE
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 -DOPENSSL_NO_SEED
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 -DOPENSSL_NO_WHIRLPOOL
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115 -DOPENSSL_NO_RIPEMD
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
116 -DOPENSSL_NO_AFALGENG
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
117
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
118 -DOPENSSLDIR="/usr/local/ssl"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
119 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
120
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
121
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
122 include_directories(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
123 ${OPENSSL_SOURCES_DIR}
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
124 ${OPENSSL_SOURCES_DIR}/crypto
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
125 ${OPENSSL_SOURCES_DIR}/crypto/asn1
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126 ${OPENSSL_SOURCES_DIR}/crypto/ec/curve448
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127 ${OPENSSL_SOURCES_DIR}/crypto/ec/curve448/arch_32
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
128 ${OPENSSL_SOURCES_DIR}/crypto/evp
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
129 ${OPENSSL_SOURCES_DIR}/crypto/include
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130 ${OPENSSL_SOURCES_DIR}/crypto/modes
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 ${OPENSSL_SOURCES_DIR}/include
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
132 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
133
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
134
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
135 set(OPENSSL_SOURCES_SUBDIRS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
136 ${OPENSSL_SOURCES_DIR}/crypto
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
137 ${OPENSSL_SOURCES_DIR}/crypto/aes
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
138 ${OPENSSL_SOURCES_DIR}/crypto/aria
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
139 ${OPENSSL_SOURCES_DIR}/crypto/asn1
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
140 ${OPENSSL_SOURCES_DIR}/crypto/async
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
141 ${OPENSSL_SOURCES_DIR}/crypto/async/arch
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
142 ${OPENSSL_SOURCES_DIR}/crypto/bio
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
143 ${OPENSSL_SOURCES_DIR}/crypto/blake2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
144 ${OPENSSL_SOURCES_DIR}/crypto/bn
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
145 ${OPENSSL_SOURCES_DIR}/crypto/buffer
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
146 ${OPENSSL_SOURCES_DIR}/crypto/chacha
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
147 ${OPENSSL_SOURCES_DIR}/crypto/cmac
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
148 ${OPENSSL_SOURCES_DIR}/crypto/cms
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
149 ${OPENSSL_SOURCES_DIR}/crypto/comp
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
150 ${OPENSSL_SOURCES_DIR}/crypto/conf
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
151 ${OPENSSL_SOURCES_DIR}/crypto/ct
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
152 ${OPENSSL_SOURCES_DIR}/crypto/des
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
153 ${OPENSSL_SOURCES_DIR}/crypto/dh
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
154 ${OPENSSL_SOURCES_DIR}/crypto/dsa
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
155 ${OPENSSL_SOURCES_DIR}/crypto/dso
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
156 ${OPENSSL_SOURCES_DIR}/crypto/ec
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
157 ${OPENSSL_SOURCES_DIR}/crypto/ec/curve448
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
158 ${OPENSSL_SOURCES_DIR}/crypto/ec/curve448/arch_32
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
159 ${OPENSSL_SOURCES_DIR}/crypto/err
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
160 ${OPENSSL_SOURCES_DIR}/crypto/evp
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
161 ${OPENSSL_SOURCES_DIR}/crypto/hmac
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
162 ${OPENSSL_SOURCES_DIR}/crypto/kdf
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
163 ${OPENSSL_SOURCES_DIR}/crypto/lhash
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
164 ${OPENSSL_SOURCES_DIR}/crypto/md4
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
165 ${OPENSSL_SOURCES_DIR}/crypto/md5
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
166 ${OPENSSL_SOURCES_DIR}/crypto/modes
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
167 ${OPENSSL_SOURCES_DIR}/crypto/objects
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
168 ${OPENSSL_SOURCES_DIR}/crypto/ocsp
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
169 ${OPENSSL_SOURCES_DIR}/crypto/pem
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
170 ${OPENSSL_SOURCES_DIR}/crypto/pkcs12
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
171 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
172 ${OPENSSL_SOURCES_DIR}/crypto/poly1305
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
173 ${OPENSSL_SOURCES_DIR}/crypto/pqueue
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
174 ${OPENSSL_SOURCES_DIR}/crypto/rand
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
175 ${OPENSSL_SOURCES_DIR}/crypto/ripemd
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
176 ${OPENSSL_SOURCES_DIR}/crypto/rsa
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
177 ${OPENSSL_SOURCES_DIR}/crypto/sha
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
178 ${OPENSSL_SOURCES_DIR}/crypto/siphash
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
179 ${OPENSSL_SOURCES_DIR}/crypto/sm2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
180 ${OPENSSL_SOURCES_DIR}/crypto/sm3
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
181 ${OPENSSL_SOURCES_DIR}/crypto/sm4
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
182 ${OPENSSL_SOURCES_DIR}/crypto/srp
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
183 ${OPENSSL_SOURCES_DIR}/crypto/stack
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
184 ${OPENSSL_SOURCES_DIR}/crypto/store
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
185 ${OPENSSL_SOURCES_DIR}/crypto/ts
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
186 ${OPENSSL_SOURCES_DIR}/crypto/txt_db
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
187 ${OPENSSL_SOURCES_DIR}/crypto/ui
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
188 ${OPENSSL_SOURCES_DIR}/crypto/x509
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
189 ${OPENSSL_SOURCES_DIR}/crypto/x509v3
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
190 ${OPENSSL_SOURCES_DIR}/ssl
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
191 ${OPENSSL_SOURCES_DIR}/ssl/record
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
192 ${OPENSSL_SOURCES_DIR}/ssl/statem
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
193 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
194
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
195 if (ENABLE_OPENSSL_ENGINES)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
196 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
197 #-DENGINESDIR="/usr/local/lib/engines-1.1" # On GNU/Linux
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
198 -DENGINESDIR="."
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
199 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
200
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
201 list(APPEND OPENSSL_SOURCES_SUBDIRS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
202 ${OPENSSL_SOURCES_DIR}/engines
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
203 ${OPENSSL_SOURCES_DIR}/crypto/engine
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
204 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
205 else()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
206 add_definitions(-DOPENSSL_NO_ENGINE)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
208
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
209 list(APPEND OPENSSL_SOURCES_SUBDIRS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
210 # EC, ECDH and ECDSA are necessary for PKCS11, and for contacting
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
211 # HTTPS servers that use TLS certificate encrypted with ECDSA
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
212 # (check the output of a recent version of the "sslscan"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
213 # command). Until Orthanc <= 1.4.1, these features were only
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
214 # enabled if ENABLE_PKCS11 support was set to "ON".
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
215 # https://groups.google.com/d/msg/orthanc-users/2l-bhYIMEWg/oMmK33bYBgAJ
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
216 ${OPENSSL_SOURCES_DIR}/crypto/ec
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
217 ${OPENSSL_SOURCES_DIR}/crypto/ecdh
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
218 ${OPENSSL_SOURCES_DIR}/crypto/ecdsa
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
219 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
220
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
221 foreach(d ${OPENSSL_SOURCES_SUBDIRS})
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
222 AUX_SOURCE_DIRECTORY(${d} OPENSSL_SOURCES)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
223 endforeach()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
224
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
225 list(REMOVE_ITEM OPENSSL_SOURCES
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
226 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_nyi.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
227 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_unix.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
228 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_vms.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
229 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_win.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
230 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_win32.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
231 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_wince.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
232 ${OPENSSL_SOURCES_DIR}/crypto/aes/aes_x86core.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
233 ${OPENSSL_SOURCES_DIR}/crypto/armcap.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
234 ${OPENSSL_SOURCES_DIR}/crypto/bio/bss_dgram.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
235 ${OPENSSL_SOURCES_DIR}/crypto/des/ncbc_enc.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
236 ${OPENSSL_SOURCES_DIR}/crypto/ec/ecp_nistz256.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
237 ${OPENSSL_SOURCES_DIR}/crypto/ec/ecp_nistz256_table.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
238 ${OPENSSL_SOURCES_DIR}/crypto/engine/eng_devcrypto.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
239 ${OPENSSL_SOURCES_DIR}/crypto/poly1305/poly1305_base2_44.c # Cannot be compiled with MinGW
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
240 ${OPENSSL_SOURCES_DIR}/crypto/poly1305/poly1305_ieee754.c # Cannot be compiled with MinGW
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
241 ${OPENSSL_SOURCES_DIR}/crypto/ppccap.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
242 ${OPENSSL_SOURCES_DIR}/crypto/s390xcap.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
243 ${OPENSSL_SOURCES_DIR}/crypto/sparcv9cap.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
244 ${OPENSSL_SOURCES_DIR}/engines/e_afalg.c # Cannot be compiled with MinGW
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
245 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
246
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
247 # Check out "${OPENSSL_SOURCES_DIR}/Configurations/README": "This is
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
248 # default if no option is specified, it works on any supported
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
249 # system." It is mandatory to define it as a macro, as it is used by
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
250 # all the source files that include OpenSSL (e.g. "Core/Toolbox.cpp"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
251 # or curl)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
252 add_definitions(-DTHIRTY_TWO_BIT)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
253
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
254
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
255 if (NOT CMAKE_COMPILER_IS_GNUCXX OR
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
256 "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
257 "${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
258 # Disable the use of a gcc extension, that is neither available on
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
259 # MinGW, nor on LSB
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
260 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
261 -DOPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
262 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
263 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
264
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
265
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
266 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
267 set(OPENSSL_DEFINITIONS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
268 "${OPENSSL_DEFINITIONS};OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN;NO_WINDOWS_BRAINDEATH")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
269
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
270 if (ENABLE_OPENSSL_ENGINES)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
271 link_libraries(crypt32)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
272 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
273
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
274 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
275 -DOPENSSL_RAND_SEED_OS # ${OPENSSL_SOURCES_DIR}/crypto/rand/rand_win.c
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
276 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
277
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
278 elseif ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
279 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
280 # In order for "crypto/mem_sec.c" to compile on LSB
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
281 -DOPENSSL_NO_SECURE_MEMORY
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
282
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
283 # The "OPENSSL_RAND_SEED_OS" value implies a syscall() to
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
284 # "__NR_getrandom" (i.e. system call "getentropy(2)") in
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
285 # "rand_unix.c", which is not available in LSB.
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
286 -DOPENSSL_RAND_SEED_DEVRANDOM
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
287
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
288 # If "OPENSSL_NO_ERR" is not defined, the PostgreSQL plugin
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
289 # crashes with segmentation fault in function
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
290 # "build_SYS_str_reasons()", that is called from
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
291 # "OPENSSL_init_ssl()"
5432
59e3b6f8c5be migration to UCLouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5271
diff changeset
292 # https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=193
4904
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
293 -DOPENSSL_NO_ERR
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
294 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
295
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
296 else()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
297 # Fixes error "OpenSSL error: error:2406C06E:random number
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
298 # generator:RAND_DRBG_instantiate:error retrieving entropy" that was
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
299 # present in Orthanc 1.6.0, if statically linking on Ubuntu 18.04
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
300 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
301 -DOPENSSL_RAND_SEED_OS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
302 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
303 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
304
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
306 set_source_files_properties(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
307 ${OPENSSL_SOURCES}
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
308 PROPERTIES COMPILE_DEFINITIONS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
309 "${OPENSSL_DEFINITIONS};DSO_NONE"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
310 )