diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-12-11 16:55:43 +0800 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2019-12-20 12:54:50 +0100 |
commit | d52b838e5b4b06d1fbee56564301f295835c12a3 (patch) | |
tree | d3bbc703c7edecac64a17a320ac5d2330fd88d3d | |
parent | 694deef3d4b1c56418ce6f4a2378c8927a3a3072 (diff) | |
download | sigc++-d52b838e5b4b06d1fbee56564301f295835c12a3.tar.gz |
meson: State clearly mm-common-get is required for maintainer mode
Instead of showing that 'mm-common-get' is not found, state that it is
required for maintainer-mode.
-rw-r--r-- | meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build index a6f455c..85e2103 100644 --- a/meson.build +++ b/meson.build @@ -97,7 +97,13 @@ endif # Some dependencies are required only in maintainer mode and/or # if documentation shall be built. -mm_common_get = find_program('mm-common-get', required: maintainer_mode) +mm_common_get = find_program('mm-common-get', required: false) + +if maintainer_mode and not mm_common_get.found() + error('Maintainer mode requires the \'mm-common-get\' command.\n' + + 'Use \'-Dmaintainer-mode=false\' or install the \'mm-common\' package, version 1.0.0 or higher') +endif + perl = find_program('perl', required: build_documentation) doxygen = find_program('doxygen', required: build_documentation) dot = find_program('dot', required: build_documentation) # Used by Doxygen |