diff --git a/src/tools/meson.build b/src/tools/meson.build index 4c087194..b7f08c1a 100644 --- a/src/tools/meson.build +++ b/src/tools/meson.build @@ -2,7 +2,7 @@ tools_deps = [ libsysprof_capture_dep, ] -if host_machine.system() == 'linux' +if get_option('libsysprof') and host_machine.system() == 'linux' sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c', dependencies: tools_deps + [libsysprof_dep, polkit_dep, polkit_agent_dep], install_dir: get_option('bindir'),