Skip to content

Commit

Permalink
Use library feature-test macros to check if format is present
Browse files Browse the repository at this point in the history
  • Loading branch information
hdoc committed Dec 14, 2023
1 parent 2a81e07 commit 505c47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subprojects/packagefiles/spdlog/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if get_option('external_fmt').enabled()
endif

if get_option('std_format').enabled()
if meson.get_compiler('cpp').has_header('format', required: true)
if meson.get_compiler('cpp').has_header_symbol('format', '__cpp_lib_format', required: true)
spdlog_compile_args += '-DSPDLOG_USE_STD_FORMAT'
endif
endif
Expand Down

0 comments on commit 505c47f

Please sign in to comment.