Mercurial > hg > orthanc
annotate Resources/CMake/OpenSslConfiguration.cmake @ 2378:116ade1eff82
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 28 Aug 2017 15:02:27 +0200 |
parents | 2aff870c2c58 |
children | 4900688827a8 |
rev | line source |
---|---|
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
1 if (ENABLE_SSL) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
2 if (STATIC_BUILD OR NOT USE_SYSTEM_OPENSSL) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
3 # WARNING - We had to repack the upstream ".tar.gz" file to a ZIP |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
4 # file, as the upstream distribution ships symbolic links that are |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
5 # not always properly handled when uncompressing on Windows. |
1537
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1530
diff
changeset
|
6 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
7 SET(OPENSSL_SOURCES_DIR ${CMAKE_BINARY_DIR}/openssl-1.0.2d) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
8 SET(OPENSSL_URL "http://www.orthanc-server.com/downloads/third-party/openssl-1.0.2d.zip") |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
9 SET(OPENSSL_MD5 "4b2ac15fc6db17f3dadc54482d3eee85") |
1537
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1530
diff
changeset
|
10 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
11 if (IS_DIRECTORY "${OPENSSL_SOURCES_DIR}") |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
12 set(FirstRun OFF) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
13 else() |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
14 set(FirstRun ON) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
15 endif() |
735 | 16 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
17 DownloadPackage(${OPENSSL_MD5} ${OPENSSL_URL} "${OPENSSL_SOURCES_DIR}") |
735 | 18 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
19 add_definitions( |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
20 -DOPENSSL_THREADS |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
21 -DOPENSSL_IA32_SSE2 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
22 -DOPENSSL_NO_ASM |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
23 -DOPENSSL_NO_DYNAMIC_ENGINE |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
24 -DNO_WINDOWS_BRAINDEATH |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
25 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
26 -DOPENSSL_NO_BF |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
27 -DOPENSSL_NO_CAMELLIA |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
28 -DOPENSSL_NO_CAST |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
29 -DOPENSSL_NO_EC_NISTP_64_GCC_128 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
30 -DOPENSSL_NO_GMP |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
31 -DOPENSSL_NO_GOST |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
32 -DOPENSSL_NO_HW |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
33 -DOPENSSL_NO_JPAKE |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
34 -DOPENSSL_NO_IDEA |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
35 -DOPENSSL_NO_KRB5 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
36 -DOPENSSL_NO_MD2 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
37 -DOPENSSL_NO_MDC2 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
38 -DOPENSSL_NO_MD4 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
39 -DOPENSSL_NO_RC2 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
40 -DOPENSSL_NO_RC4 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
41 -DOPENSSL_NO_RC5 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
42 -DOPENSSL_NO_RFC3779 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
43 -DOPENSSL_NO_SCTP |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
44 -DOPENSSL_NO_STORE |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
45 -DOPENSSL_NO_SEED |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
46 -DOPENSSL_NO_WHIRLPOOL |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
47 -DOPENSSL_NO_RIPEMD |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
48 ) |
735 | 49 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
50 include_directories( |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
51 ${OPENSSL_SOURCES_DIR} |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
52 ${OPENSSL_SOURCES_DIR}/crypto |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
53 ${OPENSSL_SOURCES_DIR}/crypto/asn1 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
54 ${OPENSSL_SOURCES_DIR}/crypto/modes |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
55 ${OPENSSL_SOURCES_DIR}/crypto/evp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
56 ${OPENSSL_SOURCES_DIR}/include |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
57 ) |
735 | 58 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
59 set(OPENSSL_SOURCES_SUBDIRS |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
60 ${OPENSSL_SOURCES_DIR}/crypto |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
61 ${OPENSSL_SOURCES_DIR}/crypto/aes |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
62 ${OPENSSL_SOURCES_DIR}/crypto/asn1 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
63 ${OPENSSL_SOURCES_DIR}/crypto/bio |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
64 ${OPENSSL_SOURCES_DIR}/crypto/bn |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
65 ${OPENSSL_SOURCES_DIR}/crypto/buffer |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
66 ${OPENSSL_SOURCES_DIR}/crypto/cmac |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
67 ${OPENSSL_SOURCES_DIR}/crypto/cms |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
68 ${OPENSSL_SOURCES_DIR}/crypto/comp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
69 ${OPENSSL_SOURCES_DIR}/crypto/conf |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
70 ${OPENSSL_SOURCES_DIR}/crypto/des |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
71 ${OPENSSL_SOURCES_DIR}/crypto/dh |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
72 ${OPENSSL_SOURCES_DIR}/crypto/dsa |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
73 ${OPENSSL_SOURCES_DIR}/crypto/dso |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
74 ${OPENSSL_SOURCES_DIR}/crypto/engine |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
75 ${OPENSSL_SOURCES_DIR}/crypto/err |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
76 ${OPENSSL_SOURCES_DIR}/crypto/evp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
77 ${OPENSSL_SOURCES_DIR}/crypto/hmac |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
78 ${OPENSSL_SOURCES_DIR}/crypto/lhash |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
79 ${OPENSSL_SOURCES_DIR}/crypto/md5 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
80 ${OPENSSL_SOURCES_DIR}/crypto/modes |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
81 ${OPENSSL_SOURCES_DIR}/crypto/objects |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
82 ${OPENSSL_SOURCES_DIR}/crypto/ocsp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
83 ${OPENSSL_SOURCES_DIR}/crypto/pem |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
84 ${OPENSSL_SOURCES_DIR}/crypto/pkcs12 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
85 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
86 ${OPENSSL_SOURCES_DIR}/crypto/pqueue |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
87 ${OPENSSL_SOURCES_DIR}/crypto/rand |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
88 ${OPENSSL_SOURCES_DIR}/crypto/rsa |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
89 ${OPENSSL_SOURCES_DIR}/crypto/sha |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
90 ${OPENSSL_SOURCES_DIR}/crypto/srp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
91 ${OPENSSL_SOURCES_DIR}/crypto/stack |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
92 ${OPENSSL_SOURCES_DIR}/crypto/ts |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
93 ${OPENSSL_SOURCES_DIR}/crypto/txt_db |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
94 ${OPENSSL_SOURCES_DIR}/crypto/ui |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
95 ${OPENSSL_SOURCES_DIR}/crypto/x509 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
96 ${OPENSSL_SOURCES_DIR}/crypto/x509v3 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
97 ${OPENSSL_SOURCES_DIR}/ssl |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
98 ) |
735 | 99 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
100 if (ENABLE_PKCS11) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
101 list(APPEND OPENSSL_SOURCES_SUBDIRS |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
102 # EC, ECDH and ECDSA are necessary for PKCS11 |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
103 ${OPENSSL_SOURCES_DIR}/crypto/ec |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
104 ${OPENSSL_SOURCES_DIR}/crypto/ecdh |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
105 ${OPENSSL_SOURCES_DIR}/crypto/ecdsa |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
106 ) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
107 else() |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
108 add_definitions( |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
109 -DOPENSSL_NO_EC |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
110 -DOPENSSL_NO_ECDH |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
111 -DOPENSSL_NO_ECDSA |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
112 ) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
113 endif() |
2022
fefbe71c2272
Possibility to use PKCS#11 authentication for hardware security modules with Orthanc peers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1919
diff
changeset
|
114 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
115 foreach(d ${OPENSSL_SOURCES_SUBDIRS}) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
116 AUX_SOURCE_DIRECTORY(${d} OPENSSL_SOURCES) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
117 endforeach() |
735 | 118 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
119 list(REMOVE_ITEM OPENSSL_SOURCES |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
120 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_unix.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
121 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_vms.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
122 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_win.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
123 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_win32.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
124 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_wince.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
125 ${OPENSSL_SOURCES_DIR}/crypto/armcap.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
126 ${OPENSSL_SOURCES_DIR}/crypto/bf/bfs.cpp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
127 ${OPENSSL_SOURCES_DIR}/crypto/bio/bss_rtcp.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
128 ${OPENSSL_SOURCES_DIR}/crypto/bn/exp.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
129 ${OPENSSL_SOURCES_DIR}/crypto/conf/cnf_save.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
130 ${OPENSSL_SOURCES_DIR}/crypto/conf/test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
131 ${OPENSSL_SOURCES_DIR}/crypto/des/des.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
132 ${OPENSSL_SOURCES_DIR}/crypto/des/des3s.cpp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
133 ${OPENSSL_SOURCES_DIR}/crypto/des/des_opts.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
134 ${OPENSSL_SOURCES_DIR}/crypto/des/dess.cpp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
135 ${OPENSSL_SOURCES_DIR}/crypto/des/read_pwd.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
136 ${OPENSSL_SOURCES_DIR}/crypto/des/speed.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
137 ${OPENSSL_SOURCES_DIR}/crypto/evp/e_dsa.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
138 ${OPENSSL_SOURCES_DIR}/crypto/evp/m_ripemd.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
139 ${OPENSSL_SOURCES_DIR}/crypto/lhash/lh_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
140 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5s.cpp |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
141 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/bio_ber.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
142 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/pk7_enc.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
143 ${OPENSSL_SOURCES_DIR}/crypto/ppccap.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
144 ${OPENSSL_SOURCES_DIR}/crypto/rand/randtest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
145 ${OPENSSL_SOURCES_DIR}/crypto/s390xcap.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
146 ${OPENSSL_SOURCES_DIR}/crypto/sparcv9cap.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
147 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/tabtest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
148 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3conf.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
149 ${OPENSSL_SOURCES_DIR}/ssl/ssl_task.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
150 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_nyi.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
151 ${OPENSSL_SOURCES_DIR}/crypto/aes/aes_x86core.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
152 ${OPENSSL_SOURCES_DIR}/crypto/bio/bss_dgram.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
153 ${OPENSSL_SOURCES_DIR}/crypto/bn/bntest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
154 ${OPENSSL_SOURCES_DIR}/crypto/bn/expspeed.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
155 ${OPENSSL_SOURCES_DIR}/crypto/bn/exptest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
156 ${OPENSSL_SOURCES_DIR}/crypto/engine/enginetest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
157 ${OPENSSL_SOURCES_DIR}/crypto/evp/evp_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
158 ${OPENSSL_SOURCES_DIR}/crypto/hmac/hmactest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
159 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
160 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
161 ${OPENSSL_SOURCES_DIR}/crypto/o_dir_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
162 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/dec.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
163 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/enc.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
164 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/sign.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
165 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/verify.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
166 ${OPENSSL_SOURCES_DIR}/crypto/rsa/rsa_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
167 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
168 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
169 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1t.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
170 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
171 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha256t.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
172 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha512t.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
173 ${OPENSSL_SOURCES_DIR}/crypto/sha/shatest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
174 ${OPENSSL_SOURCES_DIR}/crypto/srp/srptest.c |
735 | 175 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
176 ${OPENSSL_SOURCES_DIR}/crypto/bn/divtest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
177 ${OPENSSL_SOURCES_DIR}/crypto/bn/bnspeed.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
178 ${OPENSSL_SOURCES_DIR}/crypto/des/destest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
179 ${OPENSSL_SOURCES_DIR}/crypto/dh/p192.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
180 ${OPENSSL_SOURCES_DIR}/crypto/dh/p512.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
181 ${OPENSSL_SOURCES_DIR}/crypto/dh/p1024.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
182 ${OPENSSL_SOURCES_DIR}/crypto/des/rpw.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
183 ${OPENSSL_SOURCES_DIR}/ssl/ssltest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
184 ${OPENSSL_SOURCES_DIR}/crypto/dsa/dsagen.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
185 ${OPENSSL_SOURCES_DIR}/crypto/dsa/dsatest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
186 ${OPENSSL_SOURCES_DIR}/crypto/dh/dhtest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
187 ${OPENSSL_SOURCES_DIR}/crypto/pqueue/pq_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
188 ${OPENSSL_SOURCES_DIR}/crypto/des/ncbc_enc.c |
1919
d9e33b165112
more unneeded files for openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1542
diff
changeset
|
189 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
190 ${OPENSSL_SOURCES_DIR}/crypto/evp/evp_extra_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
191 ${OPENSSL_SOURCES_DIR}/crypto/evp/verify_extra_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
192 ${OPENSSL_SOURCES_DIR}/crypto/x509/verify_extra_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
193 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3prin.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
194 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3nametest.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
195 ${OPENSSL_SOURCES_DIR}/crypto/constant_time_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
196 ${OPENSSL_SOURCES_DIR}/crypto/ec/ecp_nistz256_table.c |
2098 | 197 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
198 ${OPENSSL_SOURCES_DIR}/ssl/heartbeat_test.c |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
199 ) |
735 | 200 |
2022
fefbe71c2272
Possibility to use PKCS#11 authentication for hardware security modules with Orthanc peers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1919
diff
changeset
|
201 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
202 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
203 set_source_files_properties( |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
204 ${OPENSSL_SOURCES} |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
205 PROPERTIES COMPILE_DEFINITIONS |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
206 "OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN") |
735 | 207 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
208 elseif ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
209 execute_process( |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
210 COMMAND ${PATCH_EXECUTABLE} -N ui_openssl.c -i ${ORTHANC_ROOT}/Resources/Patches/openssl-lsb.diff |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
211 WORKING_DIRECTORY ${OPENSSL_SOURCES_DIR}/crypto/ui |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
212 RESULT_VARIABLE Failure |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
213 ) |
735 | 214 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
215 if (Failure AND FirstRun) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
216 message(FATAL_ERROR "Error while patching a file") |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
217 endif() |
1537
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1530
diff
changeset
|
218 endif() |
735 | 219 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
220 source_group(ThirdParty\\OpenSSL REGULAR_EXPRESSION ${OPENSSL_SOURCES_DIR}/.*) |
2113
0108ac01fc8e
added source_group directives for MSVC
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2098
diff
changeset
|
221 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
222 else() |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
223 include(FindOpenSSL) |
735 | 224 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
225 if (NOT ${OPENSSL_FOUND}) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
226 message(FATAL_ERROR "Unable to find OpenSSL") |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
227 endif() |
735 | 228 |
2367
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
229 include_directories(${OPENSSL_INCLUDE_DIR}) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
230 link_libraries(${OPENSSL_LIBRARIES}) |
2aff870c2c58
refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2187
diff
changeset
|
231 endif() |
735 | 232 endif() |