Skip to content

Commit e941a97

Browse files
James EggletonNeroBurner
authored andcommitted
Hunterize v1.12.0 with Hunter v0.25.0
Use latest HunterGate.cmake from https://github.com/cpp-pm/gate Use `fmt` dependency from Hunter.
1 parent 7e635fc commit e941a97

2 files changed

Lines changed: 543 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ cmake_minimum_required(VERSION 3.10...3.21)
55
# ---------------------------------------------------------------------------------------
66
# Start spdlog project
77
# ---------------------------------------------------------------------------------------
8+
include("cmake/HunterGate.cmake")
9+
HunterGate(
10+
URL "https://github.com/cpp-pm/hunter/archive/v0.25.0.tar.gz"
11+
SHA1 "a1296b351dbfaf036c92d85c1bdb461f615849fa"
12+
)
813
include(cmake/utils.cmake)
914
include(cmake/ide.cmake)
1015

@@ -210,6 +215,7 @@ target_link_libraries(spdlog_header_only INTERFACE Threads::Threads)
210215
# ---------------------------------------------------------------------------------------
211216
if(SPDLOG_FMT_EXTERNAL OR SPDLOG_FMT_EXTERNAL_HO)
212217
if(NOT TARGET fmt::fmt)
218+
hunter_add_package(fmt)
213219
find_package(fmt CONFIG REQUIRED)
214220
endif()
215221
target_compile_definitions(spdlog PUBLIC SPDLOG_FMT_EXTERNAL)

0 commit comments

Comments
 (0)