Files
CMake/Modules
Volodymyr Zolotopupov 4f90522907 FindPkgConfig: Fix version and prefix with freedesktop.org pkg-config
pkg_check_modules() queries --modversion and --variable=prefix in one
pkg-config call. pkgconf prints both, but freedesktop.org pkg-config
prints only the version and ignores --variable. As a result, <prefix>_PREFIX
was empty, and a module with an empty "Version:" failed with
"list GET given empty list".

Use the prefix from the combined output only when pkg-config printed it,
and otherwise query it separately. While splitting the combined output
into lines, escape semicolons so that a prefix containing one is not
split into a list.

Fixes: #28194
2026-10-24 19:47:52 +03:00
..
2026-10-13 14:59:23 -04:00
2026-10-16 10:29:09 -04:00
2026-10-01 09:44:06 -04:00
2025-05-26 02:55:17 +02:00
2025-09-23 21:40:58 +02:00
2026-10-12 10:27:57 -04:00
2025-08-04 21:26:12 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-08-04 21:26:12 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-08-04 21:26:12 +02:00
2025-08-04 21:26:12 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2026-01-12 16:02:29 -05:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-08-04 21:26:12 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2026-03-07 09:01:48 -05:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00
2026-05-26 17:53:42 -04:00
2025-09-23 21:40:58 +02:00
2025-09-23 21:40:58 +02:00

See the "Find Modules" section of the cmake-developer(7) manual page.

For more information about how to contribute modules to CMake, see this page:
https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/dev/Module-Maintainers