On Sat, Mar 30 2024 at 02:55:21 PM +00:00:00, Zbigniew
Jędrzejewski-Szmek <zbyszek(a)in.waw.pl> wrote:
CMake for many years fought against pkgconf and pushed people
towards
copying those scripts into sources. It is still very common for
projects
using CMake to come with a whole directory of badly written detection
scripts that each replace a single-line pkgconf invocation.
And of course nobody has time to look into those scripts, making it
easy to smuggle something through there.
It's still better than Autotools, though. If a project doesn't want to
switch to Meson for whatever reason, then CMake is a reasonable
alternative.
I agree that CMake is not as good as Meson, and that CMake find modules
are inferior to pkg-config. The CMake developers are working on
replacing find modules with CPS [1] which is intended to be a
replacement for pkg-config that will work better on non-Linux
platforms, where pkg-config is not always adequate. It looks like that
work has maybe stalled? but if successful that would fix the problem
with find modules.
[1]
https://cps-org.github.io/cps/overview.html