As per title: common/maliit-framework.pc.in, maliit-glib/maliit-glib.pc.in, src/maliit-plugins.pc.in, and src/maliit-server.pc.in have
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
datarootdir=${prefix}/@CMAKE_INSTALL_DATADIR@ # only in src/maliit-server.pc.in and src/maliit-plugins.pc.in
and so can’t handle absolute paths in CMAKE_INSTALL_{DATA,INCLUDE,LIB}DIR. This leads to broken .pc files on NixOS in particular.
As per title:
common/maliit-framework.pc.in
,maliit-glib/maliit-glib.pc.in
,src/maliit-plugins.pc.in
, andsrc/maliit-server.pc.in
haveand so can’t handle absolute paths in
CMAKE_INSTALL_{DATA,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.