Skip to content

Commit 5a2faf1

Browse files
committed
cmake: Add own Hunter version 0.23.167
1 parent de4d0c8 commit 5a2faf1

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

CMakeLists.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ include(CableToolchains)
1212
include(CMakePackageConfigHelpers)
1313
include(GNUInstallDirs)
1414

15-
if(EVMC_TESTING OR EVMC_TEST_TOOLS)
16-
# If Hunter is needed it must be initialized before project(hera).
17-
include(evmc/cmake/cable/HunterGate.cmake)
18-
include(evmc/cmake/HunterConfig.cmake)
19-
endif()
15+
include(Hunter/init)
2016

2117
cable_configure_toolchain(DEFAULT cxx17-pic)
2218

cmake/Hunter/init.cmake

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
if(EVMC_TESTING OR EVMC_TEST_TOOLS)
3+
set(HUNTER_CONFIGURATION_TYPES Release
4+
CACHE STRING "Build type of the Hunter packages")
5+
6+
include(HunterGate)
7+
8+
HunterGate(
9+
URL "https://github.com/ruslo/hunter/archive/v0.23.167.tar.gz"
10+
SHA1 "1d8892545b0d8a52c4ad518f637d6bc33c2a572e"
11+
)
12+
endif()

0 commit comments

Comments
 (0)