Skip to content

Commit

Permalink
fmt: use MakeAvailable instead of Populate
Browse files Browse the repository at this point in the history
  • Loading branch information
willeccles committed Aug 6, 2024
1 parent a62cc3e commit f383292
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ if(NOT fmt_FOUND)
GIT_SHALLOW TRUE
)
FetchContent_GetProperties(fmt)
if(NOT fmt_POPULATED)
message(STATUS "Fetch fmt")
FetchContent_Populate(fmt)
add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
message(STATUS "Fetch fmt")
FetchContent_MakeAvailable(fmt)
endif()

set(Boost_USE_STATIC_LIBS ON)
Expand Down

0 comments on commit f383292

Please sign in to comment.