News for hackers. Stuff that matters.
Re:CMake Announcement from Boost Steering Committee by quotemstr on Friday July 28, 2017 @12:53PM (#14875640)
CMake is a big improvement, but it's a shame they didn't opt for Buck or Bazel. These two build systems are as much an improvement over the previous generation as autoconf and GNU Make were improvements over random ad-hoc configure scripts. Both take pains to ensure that builds are fully hermetic and fully reproducible, support rich introspection, and run very, very fast.
Re:CMake Announcement from Boost Steering Committee by ungzd on Friday July 28, 2017 @01:28PM (#14875937)
Buck and Bazel are definitely far better designed than these scary piles of macros like CMake and Autotools, but far from being ready for the same use cases. These new tools are designed for Google and Facebook's specific use cases: building binaries to run on their own servers, or mobile apps, from sources in monorepos (with dependencies copied to repo![1]).

I think even building packages for Linux distros is hard with these systems and cross compilation is barely documented too (however seems that it is supported, even for Windows). There are no discovery of libraries installed in system and features of system (killer feature of autotools).

[1] https://buckbuild.com/command/fetch.html

Re:CMake Announcement from Boost Steering Committee by petters on Friday July 28, 2017 @01:09PM (#14875757)
But Cmake has support for IDEs like Visual Studio. That is a huge benefit compared to Bazel.
Re:CMake Announcement from Boost Steering Committee by netheril96 on Friday July 28, 2017 @01:10PM (#14875778)
Neither Buck nor Bazel have mature support for Windows. And I very much dislike them for the enormous amount of dependency.
Re:CMake Announcement from Boost Steering Committee by oneplane on Friday July 28, 2017 @02:59PM (#14876618)
But unless you are confined to Windows, that doesn't really matter, does it? Most code for Windows seems to be written using Microsoft's own tools as far as I know, which makes both the people asking for FOSS tools and the people that make FOSS tools to begin with less likely to target Windows.
Re:CMake Announcement from Boost Steering Committee by tonyarkles on Friday July 28, 2017 @04:01PM (#14877073)
The beauty of CMake, for me, is that it can generate both Makefiles and VS2015 files. An example that I've posted here before about was a userland USB driver backed by libusb. I wrote it in idiomatic C++11 (or C++14, don't remember exactly), and amazingly I was able to generate a .so, a .dyld, and a .dll from the same source code, without needing a single #ifdef. Built using gcc on Linux, clang on OSX, and VS2015 on Windows. CMake would output Makefiles on the first two, and a VS solution file on Windows that I could build. I'm still amazed by it a couple years later.
Re:CMake Announcement from Boost Steering Committee by vinkelhake on Friday July 28, 2017 @04:50PM (#14877484)
We're in the context of Boost here and it has great support for Windows. Switching to a build system that doesn't have mature support for Windows is simply a non-starter for the Boost project.

That a lot of FOSS projects (understandably) have poor support for Windows doesn't mean that all of them do. It also doesn't mean there isn't demand for FOSS projects on that platform.

Re:CMake Announcement from Boost Steering Committee by mwfunk on Friday July 28, 2017 @04:05PM (#14877099)
That's a pretty ginormous "but unless...". It would not surprise me if more people are building and using Boost than all other platforms put together. I haven't done any Windows development in 10+ years, but it's not like everyone else stopped when I did.
Re:CMake Announcement from Boost Steering Committee by geezerjay on Saturday July 29, 2017 @03:11AM (#14879981)
> But unless you are confined to Windows, that doesn't really matter, does it?

Yeah, why should 80% of the OS market share mind to people who develop software for a living?

Re:CMake Announcement from Boost Steering Committee by 0xFFC on Friday July 28, 2017 @01:15PM (#14875830)
I completely disagree. Other companies do provide excellent support for CMake right now. Take for example android new cmake toolchain support for compiling for android. Compiling your project for Android is as easy as adding a command line parameter.

Neither Buck and Bazel are nowhere near as Cmake.

As someone who works with C++ and cross compiles code to arm. I really appreciate and enjoyed with recent trends in porting codes to cmake build(prebuild?) system .

Re:CMake Announcement from Boost Steering Committee by aristidb on Friday July 28, 2017 @12:59PM (#14875697)
True, but Cmake has a lot of users already familiar with it and who have it pre-installed. So I applaud this change to use Cmake!
Re:CMake Announcement from Boost Steering Committee by ungzd on Friday July 28, 2017 @01:31PM (#14875972)
It looks like few people are familiar with CMake, others are just copy-pasting snippets of configuration code from googled results. And noone knows how to do it right. The same is with Autotools.
Re:CMake Announcement from Boost Steering Committee by SXX on Friday July 28, 2017 @02:23PM (#14876375)
Even if you look at Kitware own products they full of quite outdated and ugly code. I think it's because amount of code and platform-specific hacks in CMake / CPack / CTest is just too hard to maintain and many things will break hard while there was no changes in them for years.

Also copy-pasting sometimes work better simply because very few developers actually able to check how their own configuration work across multiple platforms and endless number of Linux distributions. It's might look easy to make your own configuration, but once you try to at least cover Windows, Mac and Deb-based Linux it's take weeks to debug everything. Instead you can copy-paste someone else module, change few lines and it's will already cover everything you need.

EDIT: typo: on -> once

Re:CMake Announcement from Boost Steering Committee by yorwba on Friday July 28, 2017 @02:07PM (#14876245)
My only experience with Bazel was building TensorFlow. I can't say that the builds were fully reproducible or very fast. That TensorFlow is a big project excuses the speed (most of the time was probably spent actually compiling), but I had to rebuild three times until setting the flag for GPU support had the desired effect. So whatever magic was supposed to deliver reproducibility was not working. Add to that issues with some Bazel processes hogging resources in the background and I was wishing for some good old makefiles.
Re:CMake Announcement from Boost Steering Committee by corndoge on Friday July 28, 2017 @01:34PM (#14875990)
Or meson, which gnome and systemd now support, among other big projects.
Re:CMake Announcement from Boost Steering Committee by moosingin3space on Friday July 28, 2017 @03:04PM (#14876647)
While bazel and buck look great for building Google/Facebook-sized codebases, meson looks great for what most of our projects are.
Re:CMake Announcement from Boost Steering Committee by JoshTriplett on Friday July 28, 2017 @01:38PM (#14876027)
Personally, I'd much rather see Meson than either one. But CMake is still a solid, mature choice here.
Re:CMake Announcement from Boost Steering Committee by lomnakkus on Friday July 28, 2017 @03:38PM (#14876904)
One obvious issue with Meson is that it's not really available as a (statically-compiled, if you want) binary.

I was an early adopter (years and years ago) of Scons, but the Python dependency turned out to be an absolute disaster, purely in terms of infrastructure (especially that everybody had to have a lot of "things" installed).

While CMake isn't exactly great, a) it is reasonably understandable, and b) the boost build system was essentially a single-project-build system, and c) it's a huge improvement over autoconf, and d) it doesn't need a lot of infrastructure aside from what ships with it (to contrast with 'interpreted' build systems).