Skip to content

Commit

Permalink
fmt: do not build libfmt unless it's needed
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jan 4, 2025
1 parent f181bfc commit 3de2893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@
"fmt"
],
"versions": [
"11.1.1-2",
"11.1.1-1",
"11.0.2-1",
"11.0.1-1",
Expand Down
4 changes: 3 additions & 1 deletion subprojects/packagefiles/fmt/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ fmt_lib = library(
'src/os.cc',
cpp_args: fmt_private_cpp_args,
include_directories: 'include',
install: true,
build_by_default: false,
# so we do not build libfmt when using fmt_header_only
install: not meson.is_subproject(),
)

install_subdir('include',
Expand Down

0 comments on commit 3de2893

Please sign in to comment.