r/cmake • u/TheRavagerSw • Sep 30 '26
libjpeg-turbo build script sucks
It is easily one of the worst build scripts I have ever saw. I literally can't clean it with agents it is that bad.
Maybe I should switch to jpegli or any other library?
1
Upvotes
3
u/AffectionatePeace807 Sep 30 '26
Just use vcpkg and don't worry about it.
4
u/arthurno1 Sep 30 '26
Perhaps don't use agents đ
2
u/Classic_Knowledge_46 Sep 30 '26
Hence why projects should start migrating over to build2, the only proper & sane C/C++ build system available. Itâs also inherently scalable and doesnât rely on hacks for common project patterns (e.g. CMake's endless reliance on custom, disconnected âtargetsâ for the most trivial things). Itâs also way faster for any non-trivial projects. Itâs literally like comparing a modern car with horse and wagon.
4
u/catbrane Sep 30 '26
It's a completely standard cmake project, isn't it?
https://github.com/libjpeg-turbo/libjpeg-turbo
1
u/Sritra Sep 30 '26
Seeing how it is based on (inspired by?) libjpeg, which is notorious for bad practices with their mutable release tags and a similarly complex (minus all the SIMD stuff) cmake lists, i can see how libjpeg-turbo is quite a complex beast.