Skip to content

Commit 1cb11d8

Browse files
committed
fmt: make minimum version 5.0.0
5.0.0 introduces format_to, needed for stringFormatTo. Signed-off-by: Rosen Penev <[email protected]>
1 parent de49e33 commit 1cb11d8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ endif()
9393
include_directories(${CMAKE_BINARY_DIR}) # Make the exv_conf.h file visible for the full project
9494

9595
if(NOT EXV_HAVE_STD_FORMAT)
96-
find_package(fmt REQUIRED)
96+
find_package(fmt "5.0.0" REQUIRED)
9797
endif()
9898

9999
if(EXIV2_ENABLE_XMP)

cmake/exiv2Config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if(NOT @BUILD_SHARED_LIBS@) # if(NOT BUILD_SHARED_LIBS)
4949
endif()
5050

5151
if(NOT "@EXV_HAVE_STD_FORMAT@") # if(NOT EXV_HAVE_STD_FORMAT)
52-
find_dependency(fmt REQUIRED)
52+
find_dependency(fmt "5.0.0" REQUIRED)
5353
endif()
5454
endif()
5555

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ foreach d, os : {'procstat': 'freebsd', 'socket': 'sunos', 'ws2_32': 'windows'}
5858
endforeach
5959

6060
fmt_dep = []
61-
if not cpp.has_header_symbol('format', 'std::format')
62-
fmt_dep = dependency('fmt')
61+
if not cdata.get('EXV_HAVE_STD_FORMAT')
62+
fmt_dep = dependency('fmt', version: '>=5.0.0')
6363
deps += fmt_dep
6464
endif
6565

0 commit comments

Comments
 (0)