From ed6919bf8e36a6af7dbe24c261e9f6fb3fa68d19 Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 5 Dec 2024 19:36:11 +0200 Subject: [PATCH] Fixed cmake warning --- cmake/fmtlib.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmake/fmtlib.cmake b/cmake/fmtlib.cmake index 4c6833a2..5aa71fb5 100644 --- a/cmake/fmtlib.cmake +++ b/cmake/fmtlib.cmake @@ -1,13 +1,15 @@ include(FetchContent) FetchContent_Declare( - fmt DOWNLOAD_EXTRACT_TIMESTAMP FALSE URL https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.tar.gz + fmt + DOWNLOAD_EXTRACT_TIMESTAMP FALSE + URL https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.tar.gz URL_HASH SHA256=6cb1e6d37bdcb756dbbe59be438790db409cdb4868c66e888d5df9f13f7c027f) + 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}) + FetchContent_MakeAvailable(fmt) set_target_properties(fmt PROPERTIES FOLDER "third-party") endif()