libmodule icon indicating copy to clipboard operation
libmodule copied to clipboard

pkg-config file is broken when CMAKE_INSTALL_{INCLUDE,LIB}DIR is absolute

Open alexshpilkin opened this issue 3 years ago • 0 comments

As per title: Extra/libmodule.pc.in has

prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@

and so can’t handle absolute paths in CMAKE_INSTALL_{INCLUDE,LIB}DIR. This leads to broken .pc files on NixOS in particular.

See “Concatenating paths when building pkg-config files” for a thorough discussion of the problem and a suggested fix, or KDE’s extra-cmake-modules for a simpler approach.

alexshpilkin avatar May 17 '22 12:05 alexshpilkin