CMake: Move Hunter config to its own file, cache Hunter on AppVeyor CI

This commit is contained in:
Paweł Bylica 2018-06-25 14:58:25 +02:00
parent aaab43e034
commit 3c7ffaac82
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
3 changed files with 14 additions and 7 deletions

View File

@ -21,13 +21,7 @@ include(HunterGate)
include(GNUInstallDirs)
include(defaults/HunterCacheServers)
# Setup Hunter.
# Hunter is going to be initialized only if building with tests,
# where it is needed to get dependencies.
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.20.37.tar.gz"
SHA1 "51886d10428c924cc21756abc17623bcf4986386"
)
include(HunterConfig)
project(evmc)
set(PROJECT_VERSION "0.1.0.dev0")

View File

@ -16,6 +16,8 @@ environment:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: "Visual Studio 14 2015 Win64"
cache:
- C:\.hunter\_Base\Cache -> cmake\HunterConfig.cmake
before_build: |
if not exist build mkdir build

11
cmake/HunterConfig.cmake Normal file
View File

@ -0,0 +1,11 @@
# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018 Pawel Bylica.
# Licensed under the MIT License. See the LICENSE file.
# Setup Hunter.
# Hunter is going to be initialized only if building with tests,
# where it is needed to get dependencies.
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.20.37.tar.gz"
SHA1 "51886d10428c924cc21756abc17623bcf4986386"
)