mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
build: Optional tools should not be mandatory
Since we're using the `found()` method on tools found via the `find_program()` function, we are expecting them to be optional, but we are not passing `required:false` to ensure that Meson does not bail out when the tool is not found.
This commit is contained in:
parent
d99f5defa3
commit
ea28338736
1 changed files with 6 additions and 2 deletions
|
|
@ -167,15 +167,19 @@ subdir('src')
|
|||
subdir('pkgconfig')
|
||||
|
||||
if get_option('enable_docs')
|
||||
doxygen = find_program('doxygen')
|
||||
doxygen = find_program('doxygen', required : false)
|
||||
if doxygen.found()
|
||||
subdir('doc')
|
||||
else
|
||||
warning('Documentation was enabled, but doxygen is not available')
|
||||
endif
|
||||
endif
|
||||
|
||||
if get_option('enable_man')
|
||||
xmltoman = find_program('xmltoman')
|
||||
xmltoman = find_program('xmltoman', required : false)
|
||||
if xmltoman.found()
|
||||
subdir('man')
|
||||
else
|
||||
warning('Man page generation was enabled, but xmltoman is not available')
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue