From c87c42b736197b726f3cca47e92bc836c773085e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 30 May 2018 13:27:24 +0530 Subject: [PATCH] Document how to set the default name_prefix and name_suffix [skip ci] Else people (like me) try to use the old behaviour where setting it to `''` would use the default. https://gitlab.gnome.org/GNOME/glib-networking/issues/33 --- docs/markdown/Reference-manual.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 2f4545141..994801716 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -473,7 +473,8 @@ be passed to [shared and static libraries](#library). target, **never** use this for object files that you build yourself. - `name_suffix` the string that will be used as the extension for the target by overriding the default. By default on Windows this is - `exe` and on other platforms it is omitted. + `exe` and on other platforms it is omitted. Set this to `[]`, or omit + the keyword argument for the default behaviour. - `override_options` takes an array of strings in the same format as `project`'s `default_options` overriding the values of these options for this target only, since 0.40.0 @@ -945,6 +946,8 @@ The keyword arguments for this are the same as for [`executable`](#executable) w `static_library`, `shared_library` and `both_libraries` also accept these keyword arguments. +Note: You can set `name_prefix` and `name_suffix` to `[]`, or omit them for the default behaviour for each platform. + ### message() ``` meson