Re: WIP: About CMake v2

From: Andres Freund <andres(at)anarazel(dot)de>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Craig Ringer <craig(dot)ringer(at)2ndquadrant(dot)com>, Yuriy Zhuravlev <stalkerg(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WIP: About CMake v2
Date: 2017-02-10 23:15:36
Message-ID: 20170210231536.lvns4zy5fcs2qrpd@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2017-02-10 10:22:34 -0800, Andres Freund wrote:
> On 2017-02-10 12:07:15 -0500, Robert Haas wrote:
> > But also, I'm not really sure whether this conversion makes sense. I
> > mean, any build system is going to require some work, and accordingly
> > our present build systems require some work. cmake will require
> > different work, but not necessarily less. The current system has a
> > long history; we pretty much know it works. Switching will inevitably
> > break some things. Maybe we'll end up better off in the long term,
> > but maybe we won't. Things are pretty good now, so it seems like it
> > would be easy for them to get worse rather than better.
>
> I do think it's kinda ok for people who've dealt with this for some
> time. But for the first few times having to write autoconf macros is
> quite intimidating. A somewhat less obscure way to deal with that is
> worth something. As is better file dependency management, across
> different environments. As is the IDE integration cmake is more and
> more getting. As is properly builtin working caching of configure tests
> (llvm first cmake run, 7.7s, second 2.54s). As is the fact that a lot of
> big projects (llvm, kde, qt, and a lot of others) migrated to it.
>
> For me personally those benefits aren't worth that much. I've learned
> autoconf stuff. I've scripting around autoconf caching. But for newer
> people that's not true.

Craig's email just now reminded me of another advantage: Using cmake
across the board, would mean we'd use the same ./configure alike logic
on both windows and linux. To me that seems quite and advantage over
managing pg_config.h.win32/config_default.pl manually/separately - we
obviously have screwed up quite badly there in the past
(cf376a4adc0805b0).

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2017-02-10 23:28:51 Re: Should we cacheline align PGXACT?
Previous Message Craig Ringer 2017-02-10 23:06:37 Re: WIP: About CMake v2