fmtlib: require at least 6.1.0

This commit is contained in:
Moritz Bunkus 2020-05-15 10:33:12 +02:00
parent a7366346ae
commit 34b4ef1fbd
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 8 additions and 3 deletions

View File

@ -44,9 +44,10 @@
For the GNU Compiler Collection (gcc) this means v7 or newer; for clang it
means v4 or newer — the same versions required by earlier MKVToolNix
versions.
* MKVToolNix now requires version 4 of fmtlib or later for the
`fmt::to_string` function. If a system-wide version is installed that's
older, the bundled copy will be used.
* MKVToolNix now requires version 6.1.0 of fmtlib or later for the
`fmt::to_string` function and bugfixes to the formatting of floating point
numbers. If a system-wide version is installed that's older, the bundled
copy will be used.
* The bundled version of fmtlib has been updated to release 6.2.1.

View File

@ -14,6 +14,10 @@ AC_CACHE_CHECK([fmt],[ac_cv_fmt],[
AC_TRY_COMPILE([
#include <fmt/format.h>
#include <fmt/ostream.h>
#if !defined(FMT_VERSION) || (FMT_VERSION < 60100)
#error fmtlib is too old, need 6.1.0 or later
#endif
],[
fmt::format("{0:02}", fmt::to_string(4254));
],[ac_cv_fmt=yes],[ac_cv_fmt=no])