Skip to content

Commit 09666b3

Browse files
committed
Expose customized hunter.cmake of OpenSSL
Signed-off-by: Li, Xun <xun.li@intel.com>
1 parent a1ae9c4 commit 09666b3

File tree

2 files changed

+65
-2
lines changed

2 files changed

+65
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
openssl
1+
hunter/openssl/*
2+
!hunter/openssl/hunter.cmake
23
gtest
34
hunter/_Base
45
toolchain
5-
cmake.lock
6+
cmake.lock
7+
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright (c) 2013-2014, Ruslan Baratov
2+
# All rights reserved.
3+
4+
# !!! DO NOT PLACE HEADER GUARDS HERE !!!
5+
6+
include(hunter_add_version)
7+
include(hunter_cacheable)
8+
include(hunter_check_toolchain_definition)
9+
include(hunter_cmake_args)
10+
include(hunter_download)
11+
include(hunter_pick_scheme)
12+
13+
hunter_add_version(
14+
PACKAGE_NAME
15+
OpenSSL
16+
VERSION
17+
"1.1.1s"
18+
URL
19+
"https://github.com/openssl/openssl/archive/OpenSSL_1_1_1s.tar.gz"
20+
SHA1
21+
1fd24e1a08d706af9a71642b07590d6bb981fe39
22+
)
23+
24+
hunter_add_version(
25+
PACKAGE_NAME
26+
OpenSSL
27+
VERSION
28+
"1.1.1t"
29+
URL
30+
"https://github.com/openssl/openssl/archive/OpenSSL_1_1_1t.tar.gz"
31+
SHA1
32+
34ea65451f7fc4625f31ba50f89b3fbea12f13f3
33+
)
34+
35+
if(MINGW)
36+
hunter_pick_scheme(DEFAULT url_sha1_openssl)
37+
elseif(WIN32)
38+
if("${HUNTER_OpenSSL_VERSION}" VERSION_LESS "1.1")
39+
hunter_pick_scheme(DEFAULT url_sha1_openssl_windows)
40+
else()
41+
hunter_pick_scheme(DEFAULT url_sha1_openssl_windows_1_1_plus)
42+
endif()
43+
elseif(APPLE)
44+
if(IOS)
45+
hunter_pick_scheme(DEFAULT url_sha1_openssl_ios)
46+
else()
47+
hunter_pick_scheme(DEFAULT url_sha1_openssl_macos)
48+
endif()
49+
else()
50+
hunter_pick_scheme(DEFAULT url_sha1_openssl)
51+
endif()
52+
53+
if(MINGW)
54+
hunter_check_toolchain_definition(NAME "__MINGW64__" DEFINED _hunter_mingw64)
55+
if(_hunter_mingw64)
56+
hunter_cmake_args(OpenSSL CMAKE_ARGS HUNTER_OPENSSL_MINGW64=TRUE)
57+
endif()
58+
endif()
59+
60+
hunter_cacheable(OpenSSL)
61+
hunter_download(PACKAGE_NAME OpenSSL PACKAGE_INTERNAL_DEPS_ID "29")

0 commit comments

Comments
 (0)