From 3c7ffaac82fa9edd27d1a3db5ddaf33ddd23f238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 25 Jun 2018 14:58:25 +0200 Subject: [PATCH] CMake: Move Hunter config to its own file, cache Hunter on AppVeyor CI --- CMakeLists.txt | 8 +------- appveyor.yml | 2 ++ cmake/HunterConfig.cmake | 11 +++++++++++ 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 cmake/HunterConfig.cmake 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" +)