Re: WIP: About CMake v2 - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: WIP: About CMake v2
Date
Msg-id 20150828162849.GE2912@alvherre.pgsql
Whole thread Raw
In response to Re: WIP: About CMake v2  (Andres Freund <andres@anarazel.de>)
Responses Re: WIP: About CMake v2
Re: WIP: About CMake v2
Re: WIP: About CMake v2
Re: WIP: About CMake v2
List 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



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: patch: version_stamp.pl: Add Git commit info to version if 'git' is specified
Next
From: Andres Freund
Date:
Subject: Re: WIP: About CMake v2