Commit eeb1ce85 authored by Beniamino Galvani's avatar Beniamino Galvani

bluetooth: build test program only when tests are enabled

The manual test should only be built when tests are enabled since it
links to the test library.

Fixes: 05c7a770 ('meson: Add missing "nm-bt-test" helper program')

#287
parent c68c199e
Pipeline #81271 canceled with stage
in 4 minutes and 59 seconds
......@@ -35,11 +35,13 @@ test(
args: [libnm_device_plugin_bluetooth.full_path(), linker_script_devices],
)
test_unit = 'nm-bt-test'
executable(
test_unit,
'tests/' + test_unit + '.c',
dependencies: libnetwork_manager_test_dep,
c_args: test_c_flags,
)
if enable_tests
test_unit = 'nm-bt-test'
executable(
test_unit,
'tests/' + test_unit + '.c',
dependencies: libnetwork_manager_test_dep,
c_args: test_c_flags,
)
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment