diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-02-26 23:46:52 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-02-26 23:58:14 +0100 |
commit | d7e582c8fb7809acf20641e95cc3a7b017eba00a (patch) | |
tree | 0a8b48828da52f72e7a30766a97d4db016a67681 | |
parent | 074ddfef3dcafe9397f4b98c51ee3fbc21ce88a4 (diff) | |
download | tracker-d7e582c8fb7809acf20641e95cc3a7b017eba00a.tar.gz |
Fix meson error when bash completion is disabled
Passing -Dbash_completion=false would error out as the
bash_completion_dir variable is never set.
meson.build:310:0: ERROR: Unknown variable "bash_completion_dir".
Fixes: d318ebeb5d4f984c61373b492d86ca50fbfd71dc
Closes: #187
-rw-r--r-- | meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build index a8e1c4cfd..2226fb930 100644 --- a/meson.build +++ b/meson.build @@ -318,7 +318,13 @@ summary = [ ' Build with SQLite FTS support: @0@ (built-in FTS: @1@)'.format( get_option('fts'), sqlite3_has_builtin_fts5), ' Build with Stemming support: ' + have_libstemmer.to_string(), - ' Bash completion support: ' + bash_completion_dir, ] +if get_option('bash_completion') + summary += [ + ' Bash completion support: ' + bash_completion_dir, + ] +endif + + message('\n'.join(summary)) |