diff options
-rw-r--r-- | shared/nm-utils/tests/meson.build | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shared/nm-utils/tests/meson.build b/shared/nm-utils/tests/meson.build index bf52740dae..1ee5efff95 100644 --- a/shared/nm-utils/tests/meson.build +++ b/shared/nm-utils/tests/meson.build @@ -1,12 +1,14 @@ test_unit = 'test-shared-general' +c_flags = [ + '-DNETWORKMANAGER_COMPILATION_TEST', + '-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)', +] + exe = executable( test_unit, test_unit + '.c', - c_args: [ - '-DNETWORKMANAGER_COMPILATION_TEST', - '-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)', - ], + c_args: c_flags, dependencies: libnm_utils_base_dep, link_with: libnm_systemd_logging_stub, ) |