mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 23:58:26 +02:00
Avoid double slashes in paths created by pkg-config
If in a .pc variable a path is created from another
variable, such as exec_prefix=${prefix}/lib, prefix
must not contain a trailing slash to avoid double
slashes in the generated path.
This commit is contained in:
parent
9983744326
commit
696a6b629d
2 changed files with 2 additions and 2 deletions
|
|
@ -671,7 +671,7 @@ if(UNIX)
|
|||
endforeach()
|
||||
set(original_prefix "${CMAKE_INSTALL_PREFIX}")
|
||||
if(DBUS_RELOCATABLE)
|
||||
set(pkgconfig_prefix "\${pcfiledir}/../../")
|
||||
set(pkgconfig_prefix "\${pcfiledir}/../..")
|
||||
else()
|
||||
set(pkgconfig_prefix "\${original_prefix}")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1584,7 +1584,7 @@ AS_IF([test "x$enable_relocation" = xauto],
|
|||
|
||||
|
||||
AS_IF([test "x$enable_relocation" = xyes],
|
||||
[AC_SUBST([pkgconfig_prefix], ['${pcfiledir}/../../'])],
|
||||
[AC_SUBST([pkgconfig_prefix], ['${pcfiledir}/../..'])],
|
||||
[AC_SUBST([pkgconfig_prefix], ['${original_prefix}'])])
|
||||
|
||||
#### Directory to source sysconfdir configuration from
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue