From c4ee85f3e8dba656be8d91d76122bdbdb3006376 Mon Sep 17 00:00:00 2001 From: trim21 Date: Sat, 4 Jan 2025 15:24:41 +0800 Subject: [PATCH] fmt: do not build libfmt unless it's need --- releases.json | 1 + subprojects/packagefiles/fmt/meson.build | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/releases.json b/releases.json index 512a13959..cdb8231e0 100644 --- a/releases.json +++ b/releases.json @@ -841,6 +841,7 @@ "fmt" ], "versions": [ + "11.0.2-2", "11.0.2-1", "11.0.1-1", "10.2.0-2", diff --git a/subprojects/packagefiles/fmt/meson.build b/subprojects/packagefiles/fmt/meson.build index 362a3ccc0..f9b604e65 100644 --- a/subprojects/packagefiles/fmt/meson.build +++ b/subprojects/packagefiles/fmt/meson.build @@ -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',