Updated cmake messages

This commit is contained in:
gabime
2023-12-23 17:16:24 +02:00
parent 3b93c53e33
commit 8a0f87406b
2 changed files with 16 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
include(FetchContent)
Set(FETCHCONTENT_QUIET FALSE)
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
@@ -10,9 +9,10 @@ FetchContent_Declare(
FetchContent_GetProperties(fmt)
if(NOT fmt_POPULATED)
message(STATUS "Fetching fmt lib...")
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})
add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR} EXCLUDE_FROM_ALL)
endif ()