mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-20 11:19:19 +08:00

* Removed SPDLOG_USE_STD_FORMAT * Removed SPDLOG_USE_STD_FORMAT * clang-format * Fix windows.yml ci * Fix ci
14 lines
549 B
CMake
14 lines
549 B
CMake
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
fmt DOWNLOAD_EXTRACT_TIMESTAMP FALSE URL https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.tar.gz
|
|
URL_HASH SHA256=6cb1e6d37bdcb756dbbe59be438790db409cdb4868c66e888d5df9f13f7c027f)
|
|
FetchContent_GetProperties(fmt)
|
|
if(NOT fmt_POPULATED)
|
|
FetchContent_Populate(fmt)
|
|
# We do not require os features of fmt
|
|
set(FMT_OS OFF CACHE BOOL "Disable FMT_OS" FORCE)
|
|
add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR})
|
|
set_target_properties(fmt PROPERTIES FOLDER "third-party")
|
|
endif()
|