What is it?¶
Every Hunter release (Atom feed) archive is a meta-package with build
instructions and URLs of real packages. Archive will be downloaded and
unpacked automatically by HunterGate CMake module. You only need to set
URL and SHA1:
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.14.5.tar.gz"
SHA1 "f2c3de6d13baf8c5d2aa77bdc47c516e668c677e"
)
Here is content of the archive in simplified form:
Hunter (0.14.15) = {
Boost (1.60.0, 1.59.0, 1.58.0-p1, ...),
GTest (1.7.0, ...),
OpenCV (3.0.0-beta, 2.4.11, 2.4.10, ...),
OpenSSL (1.0.2g, 1.0.2f, 1.0.2e, ...),
...
}
If you download and unpack it you can view some internals. Let’s see OpenSSL package properties:
wget https://github.com/ruslo/hunter/archive/v0.14.5.tar.gz
tar xf v0.14.5.tar.gz
hunter.cmake holds list of available versions:
grep -A3 -m3 VERSION hunter-0.14.5/cmake/projects/OpenSSL/hunter.cmake
VERSION
"1.0.2g"
URL
"https://github.com/openssl/openssl/archive/OpenSSL_1_0_2g.tar.gz"
--
VERSION
"1.0.2f"
URL
"https://github.com/openssl/openssl/archive/OpenSSL_1_0_2f.tar.gz"
--
VERSION
"1.0.2e"
URL
"https://github.com/openssl/openssl/archive/OpenSSL_1_0_2e.tar.gz"
Install instructions from build scheme url_sha1_openssl.cmake.in:
grep -A1 INSTALL_COMMAND hunter-0.14.5/cmake/projects/OpenSSL/schemes/url_sha1_openssl.cmake.in
INSTALL_COMMAND
make install_sw
Default version from default.cmake (is customizable, see Config-ID):
grep '\<OpenSSL\>' -m1 hunter-0.14.5/cmake/configs/default.cmake
hunter_config(OpenSSL VERSION 1.0.2g)