Skip to content

pkg-config file is broken when CMAKE_INSTALL_LIBDIR is absolute #121

@alexshpilkin

Description

@alexshpilkin

As per title: ebur128/libebur128.pc.cmake has

prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/include
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@

and so can’t handle an absolute path in CMAKE_INSTALL_LIBDIR. This leads to a broken .pc file on NixOS in particular.

Similar to open-source-parsers/jsoncpp#1199. See “Concatenating paths when building pkg-config files” for a discussion of the problem and a suggested fix (I don’t know CMake myself, sorry).

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