this post was submitted on 02 Dec 2023
135 points (93.5% liked)

linuxmemes

20453 readers
162 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
all 23 comments
sorted by: hot top controversial new old
[–] [email protected] 52 points 8 months ago (3 children)

People love to complain about CMake, often with valid complaints as well. But it - to this day - remains the only build system where I'll actually trust a project when they say they are cross-platform.

Being the Windows maintainer for OpenMW, it used to be absolute hell back a decade and half ago when an indirect dependency changed - and used something like SCons or Premake while claiming to be "cross-platform", used to be that I had to write my own build solutions for Windows since it was all hardcoded against Linux paths and libraries.

CMake might not be the coolest, most hip, build system, but it delivers on actually letting you build your software regardless of platform. So it remains my go-to for whenever I need to actually build something that's supposed to be used.
For personal things I still often hack together a couple of Makefiles though, it's just a lot faster to do.

[–] [email protected] 10 points 8 months ago

CMake and meson aren't build systems, they are generators. If you want to use Ninja, just add -G Ninja.

[–] [email protected] 7 points 8 months ago

Cross platform

(*As long as your platform isn't shite)

[–] [email protected] 0 points 8 months ago (1 children)

Wasn’t WSL supposed to solve this problem

[–] [email protected] 2 points 8 months ago

Not really, WSL seems like it was mainly supposed to stop people leaping ship to be able to develop Node without the horribly painful Windows JS experience. And wouldn't you know it, Microsoft has been making their own JavaScript language in Typescript.

[–] [email protected] 40 points 8 months ago

CMake has been around forever and is flexible enough to build really complex software. You just need to pull out enough hair when you want it to do something.

[–] [email protected] 34 points 8 months ago

I'll just use make

[–] [email protected] 30 points 8 months ago

One of these is not like the others (and it's not CMake).

Also, the syntax is absolutely mental but I like CMake :V

[–] [email protected] 23 points 8 months ago (1 children)

I ❤️ cmake

Probably because I've never developed with ninja or meson 😹

[–] [email protected] 11 points 8 months ago

Cmake can generate ninja.

Dunno why they picked on cmake when autotools exists!

[–] [email protected] 17 points 8 months ago (1 children)

I fucking hate building tools or package managers like maven because I am too lazy too learn on how to use them.

Not at all are they intentional.

I will just copy the source or some precompiled library from a git and embedd in my project. Try and stop me.

[–] [email protected] 7 points 8 months ago

Meeh, if it works 🤷.

[–] [email protected] 8 points 8 months ago (1 children)

Why you compile build system with build file generators?

[–] [email protected] 3 points 8 months ago (1 children)

If you're compiling something huge like Chrome, having a separate compilation stage for the build files makes sense. For a normal sized project it's overkill.

[–] [email protected] 1 points 8 months ago

Meson does the same...

[–] [email protected] 2 points 8 months ago (1 children)

I'm growing fond of xmake.

Simple language, simple buildscripts.

[–] [email protected] 6 points 8 months ago (1 children)

And everyone checking out your code is like „what the fuck is this?”.

[–] [email protected] 1 points 8 months ago

But it works and the language is well known!

Join the dark side; there are dozens of us!

[–] [email protected] 1 points 8 months ago

i thought this was a fortnight meme XD

[–] [email protected] -2 points 8 months ago (1 children)
[–] [email protected] 9 points 8 months ago (1 children)
[–] [email protected] 3 points 8 months ago

I mean... Maybe they saw 'C'make' and then realized.