diff --git a/lib/packagefiles/libopencm3/meson.build b/lib/packagefiles/libopencm3/meson.build index 0213b7a2a8a..c8556f1b2ec 100644 --- a/lib/packagefiles/libopencm3/meson.build +++ b/lib/packagefiles/libopencm3/meson.build @@ -39,7 +39,7 @@ libopencm3_project = external_project.add_project('configure', # Get all targets/libraries supported by libopencm3 make = find_program('make') -libopencm3_targets = run_command(make, '-C', meson.current_source_dir(), 'list-targets', check: true).stdout().split(' ') +libopencm3_targets = run_command(make, '--no-print-directory', '-C', meson.current_source_dir(), 'list-targets', check: true).stdout().split(' ') message('libopencm3 targets: @0@'.format(', '.join(libopencm3_targets)))