[nanomsg] NNG & modern CMake

  • From: Garrett D'Amore <garrett@xxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Wed, 1 Jan 2020 17:21:55 -0800

All,

This is a heads up (and a request for objections if any) that at some point 
soon a future release of NNG (possibly starting with v1.3) will require 
significantly newer CMake versions.  I’m contemplating requiring at least 3.13, 
and probably more like 3.14 or even 3.15.

There are a number of features that more recent CMake brings to the table, 
which potentially reduce the effort required to have easily supportable, 
flexible configuration.  At present we are working around limitations in older 
releases, but it’s becoming somewhat annoying to have to keep doing so.  Note 
that CMake binaries are packaged and freely and readily available for Ubuntu 
16.x and newer, RedHat 7.x and newer, Windows, and macOS.  Recent Visual Studio 
2019 even *includes* cmake 3.15.

This might make things slightly more annoying for folks using CMake on 
non-mainstream platforms, but even on those platforms bootstrapping CMake is 
generally a very simple task.  (Note also that modern CMake can cross compile 
easily, so even if your target environment is not mainstream, you won’t be 
impacted as long as your *development* system isn’t too far off the beaten 
path.)

If this is going to cause anyone undue stress, please let me know.

- Garrett

Other related posts: