diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-07-08 11:38:56 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-01-03 14:49:02 -0500 |
commit | 11b9ad2e29aa3b0a273a94379b18f2e429b3b555 (patch) | |
tree | 3d380526fe8ed455a528471576ba01ba8de83392 /mesonbuild/backend/backends.py | |
parent | 900677cdb26f9dbd0d7d119af49e9066bf26f195 (diff) | |
download | meson-11b9ad2e29aa3b0a273a94379b18f2e429b3b555.zip meson-11b9ad2e29aa3b0a273a94379b18f2e429b3b555.tar.gz meson-11b9ad2e29aa3b0a273a94379b18f2e429b3b555.tar.bz2 |
backends/backends: Add helpful message for getting rid of warning
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index c676d13..4a68c57 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -284,7 +284,7 @@ class Backend: if isinstance(t, build.CustomTarget): if warn_multi_output and len(t.get_outputs()) != 1: mlog.warning(f'custom_target {t.name!r} has more than one output! ' - 'Using the first one.') + f'Using the first one. Consider using `{t.name}[0]`.') filename = t.get_outputs()[0] elif isinstance(t, build.CustomTargetIndex): filename = t.get_outputs()[0] |