Thread: Incorrect option name for meson build

Incorrect option name for meson build

From
PG Doc comments form
Date:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/catalog-pg-type.html
Description:

Page:
https://www.postgresql.org/docs/16/install-meson.html#CONFIGURE-AUTO-FEATURES-MESON
Description:
Hello! As indicated in the "Build Process Details" section, in order to
control all features when building with a meson, you need to specify the
--auto_features option. But when I specify this option, the meson says that
it doesn't know it. But it knows the option -Dauto_features:

Example:
$ meson setup --auto_features=enabled build
usage: meson [-h]
{setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,format,fmt,help}
...
meson: error: unrecognized arguments: --auto_features=enabled

$ meson setup -Dauto_features=enabled build
The Meson build system
Version: 1.5.1
Source dir: $HOME/postgresql
Build dir: $HOME/postgresql/build
Build type: native build
Project name: postgresql
Project version: 16.4
...

---
Best regards,
Egor Chindyaskin
Postgres Professional: https://postgrespro.com

Re: Incorrect option name for meson build

From
Peter Eisentraut
Date:
On 26.08.24 09:15, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/12/catalog-pg-type.html
> Description:
> 
> Page:
> https://www.postgresql.org/docs/16/install-meson.html#CONFIGURE-AUTO-FEATURES-MESON
> Description:
> Hello! As indicated in the "Build Process Details" section, in order to
> control all features when building with a meson, you need to specify the
> --auto_features option. But when I specify this option, the meson says that
> it doesn't know it. But it knows the option -Dauto_features:

Yeah, I think it's either --auto-features or -Dauto_features, but not 
--auto_features.