Skip to content

Commit

Permalink
cmake: Add own Hunter version 0.23.167
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed May 14, 2019
1 parent de4d0c8 commit 5a2faf1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
12 changes: 12 additions & 0 deletions cmake/Hunter/init.cmake
Original file line number Diff line number Diff line change
@@ -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.167.tar.gz"
SHA1 "1d8892545b0d8a52c4ad518f637d6bc33c2a572e"
)
endif()

0 comments on commit 5a2faf1

Please sign in to comment.