cli11: prefer system package if found

mu embeds a "vendored" version of libcl11 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-cli11=true is
specified.
This commit is contained in:
Dirk-Jan C. Binnema
2025-07-19 10:41:10 +03:00
parent 33958cd0f7
commit 4c2ce92a15
5 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,4 @@
## Copyright (C) 2021-2023 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
## Copyright (C) 2021-2025 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@ -34,7 +34,8 @@ mu = executable(
'mu-cmd-view.cc',
'mu-cmd.cc'
],
dependencies: [ glib_dep, gmime_dep, lib_mu_dep, mu_scm_dep, thread_dep, config_h_dep ],
dependencies: [ glib_dep, gmime_dep, cli11_dep,
lib_mu_dep, mu_scm_dep, thread_dep, config_h_dep ],
cpp_args: ['-DMU_SCRIPTS_DIR="'+ join_paths(datadir, 'mu', 'scripts') + '"'],
install: true)
#