diff --git a/CMakeLists.txt b/CMakeLists.txt index ab2b989..75e01d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/appveyor.yml b/appveyor.yml index 4408d4b..9dbaa74 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/cmake/HunterConfig.cmake b/cmake/HunterConfig.cmake new file mode 100644 index 0000000..36d5712 --- /dev/null +++ b/cmake/HunterConfig.cmake @@ -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" +)