-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed build against fmt 9.0.0. Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org> * Updated bundled fmt to version 9.1.0. Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org> Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
option(VCPKG_DEPENDENCY_EXTERNAL_FMT "Use an external version of the fmt library" OFF) | ||
set(VCPKG_FMT_URL "https://github.com/fmtlib/fmt/archive/refs/tags/8.1.1.tar.gz" CACHE STRING "URL to the fmt release tarball to use.") | ||
|
||
set(VCPKG_FMT_VERSION "9.1.0" CACHE STRING "Required fmt release version.") | ||
set(VCPKG_FMT_HASH "a18442042722dd48e20714ec034a12fcc0576c9af7be5188586970e2edf47529825bdc99af366b1d5891630c8dbf6f63bfa9f012e77ab3d3ed80d1a118e3b2be" CACHE STRING "SHA512 hash of the fmt release tarball.") | ||
set(VCPKG_FMT_URL "https://github.com/fmtlib/fmt/archive/refs/tags/${VCPKG_FMT_VERSION}.tar.gz" CACHE STRING "URL to the fmt release tarball to use.") | ||
|
||
include(FetchContent) | ||
FetchContent_Declare( | ||
fmt | ||
URL "${VCPKG_FMT_URL}" | ||
URL_HASH SHA512=794a47d7cb352a2a9f2c050a60a46b002e4157e5ad23e15a5afc668e852b1e1847aeee3cda79e266c789ff79310d792060c94976ceef6352e322d60b94e23189 | ||
URL_HASH "SHA512=${VCPKG_FMT_HASH}" | ||
) | ||
|
||
if(NOT fmt_FIND_REQUIRED) | ||
message(FATAL_ERROR "fmt must be REQUIRED") | ||
endif() | ||
|
||
if(VCPKG_DEPENDENCY_EXTERNAL_FMT) | ||
find_package(fmt CONFIG REQUIRED) | ||
find_package(fmt ${VCPKG_FMT_VERSION} CONFIG REQUIRED) | ||
else() | ||
FetchContent_MakeAvailable(fmt) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters