mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 12:43:52 +00:00
This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling) (which is an evolution of the script I used ages ago when I first made a PR here...). The misspellings have been reported at https://github.com/jsoref/CLI11/actions/runs/12194174338#summary-34017587518 The action reports that the changes in this PR would make it happy: https://github.com/jsoref/CLI11/actions/runs/12194174680#summary-34017588281 --------- Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
25 lines
922 B
Meson
25 lines
922 B
Meson
# Because Meson does not allow outputs to be placed in subfolders, we must have
|
|
# meson.build here when generating the single file header so that it is placed
|
|
# in the correct location.
|
|
|
|
pymod = import('python')
|
|
prog_python = pymod.find_installation()
|
|
|
|
single_main_file = files('CLI11.hpp.in')
|
|
|
|
if use_single_header
|
|
single_header = custom_target(
|
|
'CLI11.hpp',
|
|
input: [files('../scripts/MakeSingleHeader.py'), cli11_headers, cli11_impl_headers],
|
|
output: 'CLI11.hpp',
|
|
command : [prog_python, '@INPUT@', '--main', single_main_file, '--output', '@OUTPUT@'],
|
|
depend_files: [single_main_file],
|
|
)
|
|
else
|
|
# the `declare_dependency` needs to have the single_header source as a source
|
|
# dependency, to ensure that the generator runs before any attempts to include
|
|
# the header happen. Adding an empty list is an idiomatic way to ensure the
|
|
# variable exists but does nothing
|
|
single_header = []
|
|
endif
|