fmt: prefer system package if found

mu embeds a "vendored" subset of the libfmt package under thirdparty; but it's
better to use the system-package if the user has one.

So, use the system package if found or user -Duse-embedded-fmt=true is
specified.
This commit is contained in:
Dirk-Jan C. Binnema
2025-07-19 09:31:16 +03:00
parent f90839b48b
commit 33958cd0f7
20 changed files with 40 additions and 13 deletions

View File

@ -15,6 +15,20 @@
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# mu contains some 'vendored' dependencies under thirdparty/; those
# are only used if the corresponding system package is not found
# (if such exists). But, we can override:
option('use-embedded-fmt',
type: 'boolean',
value: false,
description: 'Use the embedded fmt, even if system package is found')
#
# language detection
#
option('cld2',
type : 'feature',
value: 'auto',