Skip to content

Commit d52b838

Browse files
fanc999-1kjellahl
authored andcommitted
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.
1 parent 694deef commit d52b838

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

meson.build

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ endif
9797

9898
# Some dependencies are required only in maintainer mode and/or
9999
# if documentation shall be built.
100-
mm_common_get = find_program('mm-common-get', required: maintainer_mode)
100+
mm_common_get = find_program('mm-common-get', required: false)
101+
102+
if maintainer_mode and not mm_common_get.found()
103+
error('Maintainer mode requires the \'mm-common-get\' command.\n' +
104+
'Use \'-Dmaintainer-mode=false\' or install the \'mm-common\' package, version 1.0.0 or higher')
105+
endif
106+
101107
perl = find_program('perl', required: build_documentation)
102108
doxygen = find_program('doxygen', required: build_documentation)
103109
dot = find_program('dot', required: build_documentation) # Used by Doxygen

0 commit comments

Comments
 (0)