Ninja vs Make, What Do You Use For Your C++ Projects? - /g/ (#105989723) [Archived: 790 hours ago]

Anonymous
7/22/2025, 7:33:06 PM No.105989723
make
make
md5: e742c3d02ef40f33fad21603dece472a🔍
Replies: >>105989938 >>105990130 >>105990388 >>105990520 >>105990616 >>105990909 >>105991055 >>105991075
Anonymous
7/22/2025, 7:36:56 PM No.105989772
CMake
sage
7/22/2025, 7:45:06 PM No.105989880
for me it's GNU Make
Anonymous
7/22/2025, 7:51:26 PM No.105989938
>>105989723 (OP)
Yeah CMake, you don't "use" ninja vs Makefile as you need a builder for it. So if we reformulate your question properly then it depends, CMake use Makefile by default on GNU / Linux and I just "-j 12" on it, when I build from Windows I usually switch to ninja because MSBuild is a mess.

So on windows :
cmake project -B BUILDs/ -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build BUILDs


And on GNU / Linux :
cmake project -B BUILDs/ && cd BUILDs
make -j12
Replies: >>105991241
Anonymous
7/22/2025, 8:06:11 PM No.105990130
>>105989723 (OP)
Cmake, ninja on loonix, vs on microdik. Gnu make for overall.
Anonymous
7/22/2025, 8:29:03 PM No.105990388
>>105989723 (OP)
What do you mean versus? I use ninja with cmake.
Replies: >>105990476
Anonymous
7/22/2025, 8:34:42 PM No.105990441
Not having a standard build system in this day and age is embarrassing. Especially for a project as large and widespread as C++.
Imagining having to learn a second language just to build programs in your first language. They really still do this.
Anonymous
7/22/2025, 8:37:59 PM No.105990476
>>105990388
IIRC that video is made to highlight a common misconception. But yes, CMake + Ninja
Anonymous
7/22/2025, 8:41:35 PM No.105990520
>>105989723 (OP)
CMake < GNU Make < Meson < build.zig

Check out:
https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html
https://github.com/allyourcodebase/ffmpeg
Anonymous
7/22/2025, 8:49:18 PM No.105990616
>>105989723 (OP)
build.bat
Anonymous
7/22/2025, 9:11:36 PM No.105990909
>>105989723 (OP)
comparing apple to oranges thread
Anonymous
7/22/2025, 9:25:12 PM No.105991055
>>105989723 (OP)
for me its visual studio, vcpkg, and not caring about linux.
Replies: >>105991061
Anonymous
7/22/2025, 9:25:45 PM No.105991061
>>105991055
based
Anonymous
7/22/2025, 9:26:53 PM No.105991075
>>105989723 (OP)
cargo
Anonymous
7/22/2025, 9:42:23 PM No.105991241
>>105989938
Wrong. You can either use a flag with Ninja or Unix Makefiles.
Replies: >>105991772
Anonymous
7/22/2025, 9:54:23 PM No.105991372
cmakefags
cmakefags
md5: 61f06f681af76ed1207054592a90401a🔍
Replies: >>105991503
Anonymous
7/22/2025, 10:07:14 PM No.105991503
>>105991372
I mean, those are the same though. vcpkg just runs some other homo's cmake basically.
still a overglorified FindPackage() at the end of the day.
Anonymous
7/22/2025, 10:37:39 PM No.105991772
>>105991241
You don't use ninja as standalone solution, you need a builder like CMake, unlike Makefile which can be written by themselves (or use CMake directly).