2021-04-20 12:12:07 +00:00
|
|
|
include(FetchContent)
|
|
|
|
|
|
|
|
FetchContent_Declare(
|
|
|
|
fmtlib
|
2023-06-09 16:21:55 +00:00
|
|
|
PREFIX "${PROJECT_BINARY_DIR}/deps"
|
2023-06-08 11:03:59 +00:00
|
|
|
DOWNLOAD_DIR "${PROJECT_SOURCE_DIR}/deps/downloads"
|
2023-08-24 01:54:58 +00:00
|
|
|
DOWNLOAD_NAME fmt-9.1.0.tar.gz
|
|
|
|
URL https://github.com/fmtlib/fmt/archive/9.1.0.tar.gz
|
|
|
|
URL_HASH SHA256=5dea48d1fcddc3ec571ce2058e13910a0d4a6bab4cc09a809d8b1dd1c88ae6f2
|
2021-04-20 12:12:07 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (CMAKE_VERSION VERSION_LESS "3.14.0")
|
|
|
|
FetchContent_GetProperties(fmtlib)
|
|
|
|
if (NOT fmtlib_POPULATED)
|
|
|
|
FetchContent_Populate(fmtlib)
|
|
|
|
add_subdirectory(${fmtlib_SOURCE_DIR} ${fmtlib_BINARY_DIR})
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
FetchContent_MakeAvailable(fmtlib)
|
|
|
|
endif()
|