diff options
author | Andres Freund <andres@anarazel.de> | 2022-10-01 12:39:12 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-10-01 12:41:37 -0700 |
commit | 1360943d1ac03240fc719a459aed4ad4f9f9b5d4 (patch) | |
tree | 8b5150407cd541da0a1ae98bf86e5ff39bd4e1f4 | |
parent | d0366bfb3b211b26a997a4220757392a0c153d8d (diff) | |
download | postgresql-1360943d1ac03240fc719a459aed4ad4f9f9b5d4.tar.gz postgresql-1360943d1ac03240fc719a459aed4ad4f9f9b5d4.zip |
meson: Add prefix=/usr/local/pgsql to default_options
autoconf set PREFIX to /usr/local/pgsql, so using the same default for meson
makes sense. The effect on windows is that installation defaults to installing
to C:/usr/local/pgsql rather than meson's default of C:/, which doesn't seem
perfect, but OK enough.
Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
Author: Junwang Zhao <zhjwpku@gmail.com>
Discussion: https://postgr.es/CAEG8a3LGWE-gG6vuddmH91RORhi8gWs0mMB-hcTmP3_NVgM7dg@mail.gmail.com
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index c3bbb1c5fca..7bf798674ce 100644 --- a/meson.build +++ b/meson.build @@ -16,6 +16,10 @@ project('postgresql', default_options: [ 'warning_level=1', #-Wall equivalent 'buildtype=release', + # For compatibility with the autoconf build, set a default prefix. This + # works even on windows, where it's a drive-relative path (i.e. when on + # d:/sompath it'll install to d:/usr/local/pgsql) + 'prefix=/usr/local/pgsql', ] ) |