]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: respect build-wdctl
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 11:53:18 +0000 (13:53 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 May 2026 11:45:50 +0000 (13:45 +0200)
The build of wdctl did not respect the existing build-wdctl option.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index 785a9e94eb0256769a8146519a0257c671223e9e..1bf26d997d05a2784c08609b8b2a693451f2ac3f 100644 (file)
@@ -2069,14 +2069,16 @@ if opt and not is_disabler(exe)
   bashcompletions += ['chcpu']
 endif
 
+opt = get_option('build-wdctl').allowed()
 exe = executable(
   'wdctl',
   wdctl_sources,
   include_directories : includes,
   link_with : [lib_common,
                lib_smartcols],
-  install : true)
-if not is_disabler(exe)
+  install : opt,
+  build_by_default : opt)
+if opt and not is_disabler(exe)
   exes += exe
   manadocs += wdctl_manadocs
   bashcompletions += ['wdctl']