2023-12-22 18:01:05 +02:00
|
|
|
include(FetchContent)
|
2023-12-23 14:03:02 +02:00
|
|
|
|
2023-12-22 18:01:05 +02:00
|
|
|
FetchContent_Declare(
|
2024-12-05 19:36:11 +02:00
|
|
|
fmt
|
|
|
|
|
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
|
2025-04-13 12:46:01 +03:00
|
|
|
URL https://github.com/fmtlib/fmt/archive/refs/tags/11.1.4.tar.gz
|
|
|
|
|
URL_HASH SHA256=ac366b7b4c2e9f0dde63a59b3feb5ee59b67974b14ee5dc9ea8ad78aa2c1ee1e)
|
2024-12-05 19:36:11 +02:00
|
|
|
|
2023-12-22 18:01:05 +02:00
|
|
|
FetchContent_GetProperties(fmt)
|
|
|
|
|
if(NOT fmt_POPULATED)
|
2023-12-23 14:03:02 +02:00
|
|
|
# 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)
|
2024-11-29 15:25:29 +02:00
|
|
|
set_target_properties(fmt PROPERTIES FOLDER "third-party")
|
|
|
|
|
endif()
|