cmake: support both relative and absolute paths for pc files (#1152)

cmake supports both absolute and relative to prefix install dirs. #1071
effectively mandated relative paths only. check if install dir is
relative or absolute and either include ${prefix} in pc file or not

Fixes #1098
This commit is contained in:
Jan Palus
2023-09-30 14:25:00 +02:00
committed by GitHub
parent eaf7ff8b94
commit 2154078187
4 changed files with 24 additions and 4 deletions

View File

@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
libdir=@CMAKE_PC_LIBDIR@
includedir=@CMAKE_PC_INCLUDEDIR@
Name: TagLib
Description: Audio meta-data library