From 366e239e377f14ac613b25cf0bf40b48063874b6 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sat, 7 Dec 2024 04:09:15 +0800 Subject: [PATCH] Update meson.build --- subprojects/packagefiles/fmt/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/packagefiles/fmt/meson.build b/subprojects/packagefiles/fmt/meson.build index 214be3402..552eded53 100644 --- a/subprojects/packagefiles/fmt/meson.build +++ b/subprojects/packagefiles/fmt/meson.build @@ -7,15 +7,15 @@ if get_option('default_library') == 'shared' fmt_interface_cpp_args += ['-DFMT_SHARED'] endif -fmt_lib_install = (not meson.is_subproject()) or (get_option('default_library') != 'static') - fmt_lib = library( 'fmt', 'src/format.cc', 'src/os.cc', cpp_args: fmt_private_cpp_args, include_directories: 'include', - install: fmt_lib_install, + build_by_default: false, + # so we do not build libfmt when using fmt_header_only + install: (not meson.is_subproject()) or (get_option('default_library') != 'static'), ) install_subdir('include',