Skip to content

Commit

Permalink
Update meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jan 4, 2025
1 parent 14b5a31 commit 366e239
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions subprojects/packagefiles/fmt/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 366e239

Please sign in to comment.