File tree Expand file tree Collapse file tree 2 files changed +535
-1
lines changed
Expand file tree Collapse file tree 2 files changed +535
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ cmake_minimum_required(VERSION 3.2)
66#---------------------------------------------------------------------------------------
77# Start spdlog project
88#---------------------------------------------------------------------------------------
9+ include ("cmake/HunterGate.cmake" )
10+ HunterGate (
11+ URL "https://github.com/cpp-pm/hunter/archive/v0.23.240.tar.gz"
12+ SHA1 "ca19f3769e6c80cfdd19d8b12ba5102c27b074e0"
13+ )
914include (GNUInstallDirs )
1015include (cmake/utils.cmake )
1116include (cmake/ide.cmake )
@@ -147,7 +152,8 @@ target_link_libraries(spdlog_header_only INTERFACE Threads::Threads)
147152#---------------------------------------------------------------------------------------
148153if (SPDLOG_FMT_EXTERNAL OR SPDLOG_FMT_EXTERNAL_HO)
149154 if (NOT TARGET fmt::fmt)
150- find_package (fmt REQUIRED )
155+ hunter_add_package (fmt )
156+ find_package (fmt REQUIRED CONFIG )
151157 endif ()
152158 target_compile_definitions (spdlog PUBLIC SPDLOG_FMT_EXTERNAL )
153159 target_compile_definitions (spdlog_header_only INTERFACE SPDLOG_FMT_EXTERNAL )
You can’t perform that action at this time.
0 commit comments