From: Fred Morcos Date: Wed, 12 Jul 2023 11:43:51 +0000 (+0200) Subject: Meson: Refactor platform detection X-Git-Tag: rec-5.1.0-alpha1~80^2~338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22bd70d0d898f3c2a2ee878e381dde07630db94c;p=thirdparty%2Fpdns.git Meson: Refactor platform detection --- diff --git a/meson/platform/meson.build b/meson/platform/meson.build index 2cb763bcaf..ee64b60583 100644 --- a/meson/platform/meson.build +++ b/meson/platform/meson.build @@ -28,7 +28,8 @@ foreach platform: platforms endforeach foreach arg: args - add_project_arguments(['-D' + arg], language: 'cpp') + dep = declare_dependency(compile_args: ['-D' + arg]) + deps += dep endforeach foreach lib: libs