Closed 1480c1 closed 2 years ago
Generally, $prefix/share/pkgconfig is used to store arch-independent projects.
Courtesy of @biswa96
seems I was wrong, certain arch-independent packages do use share/pkgconfig, however, considering the nature of this project, I would hazard to guess this would not fall under the same conditions since the resulting library is not arch-independent
Thanks for the help!
I don't have that much experience on CMake so I just followed some random examples, GNUInstallDirs
seems like a way to go then.
51f7888ca794913ff7be9b46abd25cde0f2a80e2 is now pushed to master to address this, I hope it fixes the problem?
That commit does indeed fix the issue, thanks!
https://github.com/ultravideo/uvg266/blob/master/CMakeLists.txt#L227
the .pc file is installed into
$PREFIX/share/pkgconfig
, however, nothing uses that directory, the most common subdirectory islib/pkgconfig
and is usually used as the default forpkg-config
One option to address this would be something like
another would be
as according to cmake's docs, https://cmake.org/cmake/help/latest/command/install.html,
and another alternative that would probably be preferred would be to use the GNUInstallDirs module which has been provided by CMake for a while https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html and it would look something like
as that would handle distro specific quirks related to their
lib
directory such aslib32
orlib64
etc, so long as the distro sends their changes upstream and so on.