Skip to content

Commit 6f630fa

Browse files
committed
meson: avoid missing config variable warning
1 parent 9d4f02a commit 6f630fa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/meson.build

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ if get_option('tests')
4444
py_script_config_data.set ('LD_LIBRARY_PATH', meson.project_build_root() / 'src')
4545
py_script_config_data.set ('GST_PLUGIN_PATH', meson.project_build_root() / 'gst')
4646
py_script_config_data.set ('FAKE_GENICAM_PATH', meson.project_source_root() / 'src' / 'arv-fake-camera.xml')
47-
if get_option('gentl-producer')
48-
py_script_config_data.set ('ARV_PRODUCER_PATH', gentl_producer_library.full_path())
49-
endif
47+
py_script_config_data.set ('ARV_PRODUCER_PATH', get_option('gentl-producer') ? gentl_producer_library.full_path() : '')
5048

5149
configure_file (input: 'pylaunch.in', output: 'pylaunch', configuration: py_script_config_data)
5250
configure_file (input: 'pylaunch-dbg.in', output: 'pylaunch-dbg', configuration: py_script_config_data)

0 commit comments

Comments
 (0)