From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | YUriy Zhuravlev <u(dot)zhuravlev(at)postgrespro(dot)ru>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: WIP: About CMake v2 |
Date: | 2015-08-28 16:28:49 |
Message-ID: | 20150828162849.GE2912@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andres Freund wrote:
> On 2015-08-28 12:32:45 -0300, Alvaro Herrera wrote:
> > YUriy Zhuravlev wrote:
> > > Hello Hackers
> > >
> > > How would you react if I provided a patch which introduces a CMake build
> > > system?
> >
> > What's your motivation for doing so?
>
> I definitely can see some advantages. Non-broken dependencies around
> recursive make being a major one. But I'm also afraid it's a rather
> large undertaking. There's a fair number of special kind of rules, and
> we're probably not going to want to break pgxs for extensions.
>
> I also have some doubts around the portability of cmake and it's
> generated makefiles. We do support some odd platforms.
If it allows us to get rid of our custom MSVC scripts, it's a huge
benefit, for sure -- that has been a huge pain in the neck since day
one.
Like you, I am also afraid it's a huge undertaking, but if Uri wants to
tackle it, we have that part covered. Experimentation until we get it
all correct is going to waste some of everybody's time, too, I'm sure.
I wonder about two other things: one is speed of the build (not that
currently it's all that great, given all the mess with recursive make
invocations, but perhaps it can be even worse); the other is how ugly
the generated files are going to be, and are we going to carry them in
our repo -- right now we only have configure, but are we going to keep
extra files to cope with builds in systems that don't have cmake
installed (as we cope with missing bison and flex)?
I sure would oppose something that looks as ugly as Automake makefiles.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2015-08-28 16:51:45 | Re: WIP: About CMake v2 |
Previous Message | Andres Freund | 2015-08-28 16:19:09 | Re: patch: version_stamp.pl: Add Git commit info to version if 'git' is specified |