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