Files
spdlog/cmake/fmtlib.cmake

16 lines
505 B
CMake
Raw Normal View History

2023-12-22 18:01:05 +02:00
include(FetchContent)
2023-12-22 18:01:05 +02:00
FetchContent_Declare(
2024-12-05 19:36:11 +02:00
fmt
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
2025-02-01 19:06:19 +02:00
URL https://github.com/fmtlib/fmt/archive/refs/tags/11.1.3.tar.gz
URL_HASH SHA256=67cd23ea86ccc359693e2ce1ba8d1bab533c02d743c09b15f3131102d0c2fc1c)
2024-12-05 19:36:11 +02:00
2023-12-22 18:01:05 +02:00
FetchContent_GetProperties(fmt)
if(NOT fmt_POPULATED)
# We do not require os features of fmt
2023-12-22 18:01:05 +02:00
set(FMT_OS OFF CACHE BOOL "Disable FMT_OS" FORCE)
2024-12-05 19:36:11 +02:00
FetchContent_MakeAvailable(fmt)
set_target_properties(fmt PROPERTIES FOLDER "third-party")
endif()