From a318cbddbfad779cc472b1c30371cc6d5516ce34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 14 May 2019 10:49:11 +0200 Subject: [PATCH] cmake: Add own Hunter version 0.23.169 --- CMakeLists.txt | 6 +----- cmake/Hunter/init.cmake | 12 ++++++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 cmake/Hunter/init.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b313e0dc..7365b8e43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,11 +12,7 @@ include(CableToolchains) include(CMakePackageConfigHelpers) include(GNUInstallDirs) -if(EVMC_TESTING OR EVMC_TEST_TOOLS) - # If Hunter is needed it must be initialized before project(hera). - include(evmc/cmake/cable/HunterGate.cmake) - include(evmc/cmake/HunterConfig.cmake) -endif() +include(Hunter/init) cable_configure_toolchain(DEFAULT cxx17-pic) diff --git a/cmake/Hunter/init.cmake b/cmake/Hunter/init.cmake new file mode 100644 index 000000000..43c6f542e --- /dev/null +++ b/cmake/Hunter/init.cmake @@ -0,0 +1,12 @@ + +if(EVMC_TESTING OR EVMC_TEST_TOOLS) + set(HUNTER_CONFIGURATION_TYPES Release + CACHE STRING "Build type of the Hunter packages") + + include(HunterGate) + + HunterGate( + URL "https://github.com/ruslo/hunter/archive/v0.23.169.tar.gz" + SHA1 "60de9f275143ab38df559986c04e3726683e7de7" + ) +endif()