Skip to content

Commit 799f5a2

Browse files
committed
Hunterify
1 parent eb32206 commit 799f5a2

File tree

2 files changed

+543
-0
lines changed

2 files changed

+543
-0
lines changed

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)
55
# ---------------------------------------------------------------------------------------
66
# Start spdlog project
77
# ---------------------------------------------------------------------------------------
8+
include("cmake/HunterGate.cmake")
9+
HunterGate(
10+
URL "https://github.com/cpp-pm/hunter/archive/v0.23.322.tar.gz"
11+
SHA1 "cb0ea1f74f4a2c49a807de34885743495fccccbe"
12+
)
813
include(cmake/utils.cmake)
914
include(cmake/ide.cmake)
1015

@@ -190,6 +195,7 @@ target_link_libraries(spdlog_header_only INTERFACE Threads::Threads)
190195
# ---------------------------------------------------------------------------------------
191196
if(SPDLOG_FMT_EXTERNAL OR SPDLOG_FMT_EXTERNAL_HO)
192197
if(NOT TARGET fmt::fmt)
198+
hunter_add_package(fmt)
193199
find_package(fmt CONFIG REQUIRED)
194200
endif()
195201
target_compile_definitions(spdlog PUBLIC SPDLOG_FMT_EXTERNAL)

0 commit comments

Comments
 (0)