annotate OrthancFramework/Resources/CMake/OpenSslConfigurationStatic-1.1.1.cmake @ 5509:46fa46c83628

upgraded to jsoncpp 1.9.5
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 Jan 2024 18:16:17 +0100
parents 48b8dae6dc77
children f7adfb22e20e
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
5485
48b8dae6dc77 upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5434
diff changeset
4 # Copyright (C) 2017-2024 Osimis S.A., Belgium
48b8dae6dc77 upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5434
diff changeset
5 # 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
6 #
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 # 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
8 # 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
9 # 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
10 # 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
11 #
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 # 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
13 # 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
14 # 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
15 # 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
16 #
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 # 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
18 # 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
19 # <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
20
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 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
23 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
24 SET(OPENSSL_MD5 "c4e7d95f782b08116afa27b30393dd27")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 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
27 set(FirstRun OFF)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 else()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 set(FirstRun ON)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 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
33
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 if (FirstRun)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 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
36 #define DATE \"\"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 #define PLATFORM \"\"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 #define compiler_flags \"\"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 ")
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 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
41 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
42
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 configure_file(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 ${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
45 ${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
46 )
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 # Apply the patches
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 execute_process(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 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
51 ${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
52 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
53 RESULT_VARIABLE Failure
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 )
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 if (Failure)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 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
58 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 file(RENAME
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 ${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
62 ${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
63
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 # 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
65 # 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
66 # 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
67 # 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
68 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
69 #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
70 #if defined(_WIN32)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 # undef OPENSSL_EXPORT
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 # undef OPENSSL_IMPORT
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 # undef OPENSSL_EXTERN
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74 # undef OPENSSL_GLOBAL
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 # define OPENSSL_EXPORT
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 # define OPENSSL_IMPORT
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77 # define OPENSSL_EXTERN extern
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78 # define OPENSSL_GLOBAL
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79 #endif
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 ")
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 else()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83 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
84 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
85
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87 -DOPENSSL_THREADS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
88 -DOPENSSL_IA32_SSE2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89 -DOPENSSL_NO_ASM
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
90 -DOPENSSL_NO_DYNAMIC_ENGINE
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
91 -DOPENSSL_NO_DEVCRYPTOENG
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
92
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93 -DOPENSSL_NO_BF
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
94 -DOPENSSL_NO_CAMELLIA
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95 -DOPENSSL_NO_CAST
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
96 -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
97 -DOPENSSL_NO_GMP
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 -DOPENSSL_NO_GOST
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
99 -DOPENSSL_NO_HW
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100 -DOPENSSL_NO_JPAKE
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 -DOPENSSL_NO_IDEA
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102 -DOPENSSL_NO_KRB5
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103 -DOPENSSL_NO_MD2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104 -DOPENSSL_NO_MDC2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105 #-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
106 -DOPENSSL_NO_RC2
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
107 -DOPENSSL_NO_RC4
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
108 -DOPENSSL_NO_RC5
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
109 -DOPENSSL_NO_RFC3779
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
110 -DOPENSSL_NO_SCTP
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
111 -DOPENSSL_NO_STORE
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112 -DOPENSSL_NO_SEED
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 -DOPENSSL_NO_WHIRLPOOL
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 -DOPENSSL_NO_RIPEMD
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115 -DOPENSSL_NO_AFALGENG
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
116
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
117 -DOPENSSLDIR="/usr/local/ssl"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
118 )
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 include_directories(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
122 ${OPENSSL_SOURCES_DIR}
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
123 ${OPENSSL_SOURCES_DIR}/crypto
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/asn1
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/ec/curve448
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/arch_32
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/evp
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/include
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/modes
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130 ${OPENSSL_SOURCES_DIR}/include
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 )
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 set(OPENSSL_SOURCES_SUBDIRS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
135 ${OPENSSL_SOURCES_DIR}/crypto
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/aes
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/aria
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/asn1
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/async
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/arch
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/bio
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/blake2
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/bn
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/buffer
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/chacha
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/cmac
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/cms
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/comp
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/conf
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/ct
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/des
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/dh
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/dsa
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/dso
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/ec
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/curve448
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/arch_32
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/err
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/evp
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/hmac
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/kdf
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/lhash
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/md4
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/md5
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/modes
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/objects
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/ocsp
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/pem
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/pkcs12
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/pkcs7
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/poly1305
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/pqueue
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/rand
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/ripemd
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/rsa
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/sha
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/siphash
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/sm2
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/sm3
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/sm4
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/srp
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/stack
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/store
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/ts
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/txt_db
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/ui
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/x509
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/x509v3
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
189 ${OPENSSL_SOURCES_DIR}/ssl
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/record
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/statem
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
192 )
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 if (ENABLE_OPENSSL_ENGINES)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
195 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
196 #-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
197 -DENGINESDIR="."
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
198 )
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 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
201 ${OPENSSL_SOURCES_DIR}/engines
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
202 ${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
203 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
204 else()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
205 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
206 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
208 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
209 # 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
210 # 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
211 # (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
212 # 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
213 # 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
214 # 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
215 ${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
216 ${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
217 ${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
218 )
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 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
221 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
222 endforeach()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
223
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
224 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
225 ${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
226 ${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
227 ${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
228 ${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
229 ${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
230 ${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
231 ${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
232 ${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
233 ${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
234 ${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
235 ${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
236 ${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
237 ${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
238 ${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
239 ${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
240 ${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
241 ${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
242 ${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
243 ${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
244 )
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 # 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
247 # 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
248 # 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
249 # 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
250 # or curl)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
251 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
252
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 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
255 "${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
256 "${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
257 # 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
258 # MinGW, nor on LSB
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
259 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
260 -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
261 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
262 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
263
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 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
266 set(OPENSSL_DEFINITIONS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
267 "${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
268
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
269 if (ENABLE_OPENSSL_ENGINES)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
270 link_libraries(crypt32)
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
271 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
272
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
273 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
274 -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
275 )
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 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
278 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
279 # 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
280 -DOPENSSL_NO_SECURE_MEMORY
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
281
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
282 # 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
283 # "__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
284 # "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
285 -DOPENSSL_RAND_SEED_DEVRANDOM
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
286
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
287 # 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
288 # 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
289 # "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
290 # "OPENSSL_init_ssl()"
5432
59e3b6f8c5be migration to UCLouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5271
diff changeset
291 # 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
292 -DOPENSSL_NO_ERR
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
293 )
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 else()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
296 # 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
297 # 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
298 # 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
299 add_definitions(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
300 -DOPENSSL_RAND_SEED_OS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
301 )
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
302 endif()
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
303
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 set_source_files_properties(
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
306 ${OPENSSL_SOURCES}
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
307 PROPERTIES COMPILE_DEFINITIONS
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
308 "${OPENSSL_DEFINITIONS};DSO_NONE"
f2e78f7164d6 reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
309 )