#[[
   Copyright 2020-2021 The Silkworm Authors

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
]]

hunter_config(Boost VERSION 1.72.0-p1)

hunter_config(
    abseil
    VERSION 20210324.2
    URL https://github.com/abseil/abseil-cpp/archive/20210324.2.tar.gz
    SHA1 2d46ae096bfbdab19de1d65079b95e0fae9efe2e
)

hunter_config(
  Catch
  VERSION 2.13.4
  URL https://github.com/catchorg/Catch2/archive/v2.13.4.tar.gz
  SHA1 b8417c5c87ab385c9f56576aefbcc098fb923e57
)

hunter_config(
  intx
  VERSION 0.6.0
  URL https://github.com/chfast/intx/archive/v0.6.0.tar.gz
  SHA1 507827495de07412863349bc8c2a8704c7b0e5d4
)

hunter_config(
  Microsoft.GSL
  VERSION 3.1.0
  URL https://github.com/microsoft/GSL/archive/v3.1.0.tar.gz
  SHA1 3f2891a46595806563e7a0e25bb7ecbb30776445
)

hunter_config(
  ethash
  VERSION 0.7.1
  URL https://github.com/chfast/ethash/archive/v0.7.1.tar.gz
  SHA1 fb33772305a81ec2946fe0a7d327854b8192ee63
  CMAKE_ARGS ETHASH_BUILD_ETHASH=ON ETHASH_BUILD_GLOBAL_CONTEXT=NO ETHASH_BUILD_TESTS=OFF
)

hunter_config(Protobuf VERSION 3.14.0-4a09d77-p0)

hunter_config(
  gRPC
  VERSION 1.31.0-p0
  CMAKE_ARGS gRPC_BUILD_TESTS=OFF gRPC_BUILD_CODEGEN=ON gRPC_BUILD_CSHARP_EXT=OFF
)      # <-- Last working version (greater seems to have networking issues)
