[Date Prev][Date Next]
Re: (ITS#8483) CMake buildsystem support for LMDB
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8483) CMake buildsystem support for LMDB
- From: firstname.lastname@example.org
- Date: Sat, 20 Aug 2016 02:33:00 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
> Full_Name: Ivan Shapovalov
> Version: LMDB 0.9.18
> OS: GNU/Linux
> URL: ftp://ftp.openldap.org/incoming/ivan-shapovalov-160820.patch
> Submission from: (NULL) (18.104.22.168)
> This patch adds a CMake buildsystem for LMDB, side-by-side with existing
> It builds the same targets except coverage tests.
I am not a fan of CMake. Using it requires learning a whole new set of
documentation in addition to knowing the rules of Make. It comes with a huge
footprint of dependencies, and most people using it are misusing it.
> Rationale for this change: CMake simplifies building of LMDB with non-standard
> such as Android NDK which only support their custom buildsystem and CMake (via
> provided CMake toolchain configuration file).
Building for Android is trivial using e.g. agcc
> This way, one does not need to extract required compiler flags manually.
> Moreover, this simplifies life for projects which use CMake and LMDB, because a
> proper CMake buildsystem allows to e. g. automatically pass transitive
> dependencies like pthreads to dependent projects.
Using agcc allows one to build for Android any project that simply uses Make,
which was 100% of them before CMake came along.
Transitive dependencies like pthreads, which you have now embedded into your
CMakeLists.txt file, are actually compiler and platform dependent. That's why
the LMDB Makefile sets it in an overridable macro, that a programmer can
easily change on the commandline when invoking make on their chosen build
Rejecting this patch and all future patches involving CMake. We will not use
this tool ourselves and we will not maintain files that it uses in the LMDB
If you need to integrate LMDB into a particular CMake-based project, it's a
lot simpler than this. E.g.,
There's no reason to duplicate the entire Makefile when you're embedding LMDB
into some other project. This also shows the correct way to use CMake and
propagate threads dependencies.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/