Use fmt git hash and disable FMT_OS

This commit is contained in:
gabime
2023-12-22 18:01:05 +02:00
parent 1161d640a1
commit d03d514bad
2 changed files with 23 additions and 16 deletions

16
cmake/fmtlib.cmake Normal file
View File

@@ -0,0 +1,16 @@
include(FetchContent)
Set(FETCHCONTENT_QUIET FALSE)
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG f5e54359df4c26b6230fc61d38aa294581393084 # 10.1.1
GIT_PROGRESS TRUE
)
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})
endif ()