Use CMAKE_INSTALL_LIBDIR for libdir in pkg-config files

This commit is contained in:
Tom Hughes 2024-06-19 19:16:35 +01:00
parent e7d0b85dbc
commit 0e0aed3bde

View file

@ -3,7 +3,7 @@ function(create_pkg_config_file _target _lib_name _description)
prefix=@CMAKE_INSTALL_PREFIX@ prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix} exec_prefix=${prefix}
includedir=${prefix}/include includedir=${prefix}/include
libdir=${exec_prefix}/lib libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
Name: @_lib_name@ Name: @_lib_name@
Description: @_description@ Description: @_description@
@ -64,7 +64,7 @@ function(create_pkg_config_file_mapnik _lib_name _description)
prefix=@CMAKE_INSTALL_PREFIX@ prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix} exec_prefix=${prefix}
includedir=${prefix}/include includedir=${prefix}/include
libdir=${exec_prefix}/lib libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
fonts_dir=${prefix}/@FONTS_INSTALL_DIR@ fonts_dir=${prefix}/@FONTS_INSTALL_DIR@
plugins_dir=${prefix}/@PLUGINS_INSTALL_DIR@ plugins_dir=${prefix}/@PLUGINS_INSTALL_DIR@