diff options
author | Jordan Williams <jordan@jwillikers.com> | 2024-04-17 11:11:21 -0500 |
---|---|---|
committer | Jordan Williams <jordan@jwillikers.com> | 2024-04-17 11:11:21 -0500 |
commit | 25c9b3b4d849f6211ccb668932f0f8823286cd7d (patch) | |
tree | a1d9c162c6208f9c7cafb3c00ccfe6b9c90c93ac | |
parent | f5d3a3e4b138896ed97690680735c5e44559ee00 (diff) | |
download | util-linux-25c9b3b4d849f6211ccb668932f0f8823286cd7d.tar.gz |
meson: Add missing check for build-ipcrm option
The build-ipcrm option exists in meson_options.txt but has no effect.
Use the option to gate building the ipcrm executable.
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
-rw-r--r-- | meson.build | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 0cb879c3a8..d739b01a47 100644 --- a/meson.build +++ b/meson.build @@ -1398,16 +1398,20 @@ exes += exe manadocs += ['sys-utils/ipcmk.1.adoc'] bashcompletions += ['ipcmk'] +opt = get_option('build-ipcrm').allowed() exe = executable( 'ipcrm', ipcrm_sources, include_directories : includes, link_with : [lib_common], install_dir : usrbin_exec_dir, - install : true) -exes += exe -manadocs += ['sys-utils/ipcrm.1.adoc'] -bashcompletions += ['ipcrm'] + install : opt, + build_by_default : opt) +if opt and not is_disabler(exe) + exes += exe + manadocs += ['sys-utils/ipcrm.1.adoc'] + bashcompletions += ['ipcrm'] +endif opt = not get_option('build-ipcs').disabled() exe = executable( |