Skip to content

Don't require cmake files when using system webp and webm, use PkgConfig instead #1399

Description

@candrews

libwebp and libwebm system libraries can used instead of the bundled/vendor copies, which is great.

However, the CMake files must be installed on the system to use the system libraries, and those files are not always installed. Specifically, libwebp can be built using autotools or CMake, and since the CMake files are only installed when using CMake , if libwebp is built using autotools, no cmake files are installed.

For example, Gentoo doesn't install the CMake files for webp because it uses autotools for this package. See https://bugs.gentoo.org/937031 for details.

The standard way to use libraries is with PkgConfig - this approach will always work. For libwebp: pkg_check_modules(WebP REQUIRED libwebp)

FYI @wbruna

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions