# !!! DO NOT PLACE HEADER GUARDS HERE !!!

# Load used modules
include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_download)
include(hunter_pick_scheme)

# List of versions here...
hunter_add_version(
    PACKAGE_NAME
    fmt
    VERSION
    "3.0.0"
    URL
    "https://github.com/fmtlib/fmt/releases/download/3.0.0/fmt-3.0.0.zip"
    SHA1
    82ca4625f977ee1e0627ce8421bc52fbbf6e5cc5
)

hunter_add_version(
    PACKAGE_NAME
    fmt
    VERSION
    "4.0.0"
    URL
    "https://github.com/fmtlib/fmt/archive/4.0.0.tar.gz"
    SHA1
    d52942b4a31fb94dbb2cca36c90e34209033408f
)

hunter_add_version(
    PACKAGE_NAME
    fmt
    VERSION
    "4.1.0"
    URL
    "https://github.com/fmtlib/fmt/archive/4.1.0.tar.gz"
    SHA1
    9df8f7a70c1b45ffe308e8e3f4f92b31cb927a7a
)

hunter_add_version(
    PACKAGE_NAME
    fmt
    VERSION
    "5.2.1"
    URL
    "https://github.com/fmtlib/fmt/archive/5.2.1.tar.gz"
    SHA1
    8b38f1ecdf137e8ca24e9b66145c1b94fa5f921d
)

hunter_add_version(
    PACKAGE_NAME
    fmt
    VERSION
    "5.3.0"
    URL
    "https://github.com/fmtlib/fmt/archive/5.3.0.tar.gz"
    SHA1
    787a568322e08cebb1e164b3c9766e27ca18b2c8
)

hunter_add_version(
    PACKAGE_NAME
    fmt
    VERSION
    "6.0.0"
    URL
    "https://github.com/fmtlib/fmt/archive/6.0.0.tar.gz"
    SHA1
    40635ee94d24cb9856422293c04150017a8911df
)

hunter_cmake_args(
    fmt
    CMAKE_ARGS
        FMT_DOC=OFF
        FMT_TEST=OFF
        FMT_USE_CPP14=OFF # don't force c++14
)

# Pick a download scheme
hunter_pick_scheme(DEFAULT url_sha1_cmake) # use scheme for cmake projects

hunter_cacheable(fmt)
# Download package.
hunter_download(PACKAGE_NAME fmt)
