From: Yu Watanabe Date: Wed, 5 Mar 2025 12:39:06 +0000 (+0900) Subject: meson: invert version check condition to magically suppress warning X-Git-Tag: v258-rc1~1130^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff697bb909ea314a1e7373f7777447c58680f895;p=thirdparty%2Fsystemd.git meson: invert version check condition to magically suppress warning Then, it works with --fatal-meson-warnings. --- diff --git a/test/meson.build b/test/meson.build index 18b747ffbf3..7e9d28aa1bb 100644 --- a/test/meson.build +++ b/test/meson.build @@ -474,7 +474,12 @@ if install_tests foreach subdir : testdata_subdirs # install_subdir() before meson 1.3.0 does not handle symlinks correctly (it follows them # instead of copying the symlink) so we use rsync instead. - if meson.version().version_compare('<1.3.0') + if meson.version().version_compare('>=1.3.0') + install_subdir(subdir, + exclude_files : ['.gitattributes'], + install_dir : testdata_dir, + follow_symlinks : false) + else if not rsync.found() error('rsync is required to install the integration test data') endif @@ -482,11 +487,6 @@ if install_tests rsync_r = rsync.full_path() + ' -rlpt --exclude .gitattributes -- "@0@" "${DESTDIR:-}@1@"' meson.add_install_script(sh, '-c', rsync_r.format(meson.current_source_dir() / subdir, testdata_dir)) - else - install_subdir(subdir, - exclude_files : ['.gitattributes'], - install_dir : testdata_dir, - follow_symlinks : false) endif endforeach