Use better variables for the pkg-config file

The previous version created problems when setting manually CMAKE_INSTALL_LIBDIR on configure, e.g. for OBS/Debian packages.
The `libdir` value ended up as `libdir=${exec_prefix}//usr/lib` in this case, leading pkg-config to complain (obviously).
This commit is contained in:
Paul Fd 2021-04-20 12:28:47 +02:00
parent 2d95852bcb
commit 57eb4ca87a

View file

@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: @PROJECT_NAME@
Description: @PROJECT_DESCRIPTION@