From 0bf2abae9b2121c3bc5a56dab30eca308136bc29 Mon Sep 17 00:00:00 2001 From: ilya-fedin Date: Sat, 14 May 2022 02:39:43 +0400 Subject: Fix pkg-config file when libdir/bindir/includedir specified as absolute paths (#696) Currently it makes the pkg-config file unusable as prefix is specified twice. FULL variables do the necessary parsing and automatically prepend the prefix if needed. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ebfcc4e6..b1c7ede0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1261,9 +1261,9 @@ endif() # Needed for openal.pc.in set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix "\${prefix}") -set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}") -set(bindir "\${exec_prefix}/${CMAKE_INSTALL_BINDIR}") -set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") +set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}") +set(bindir "${CMAKE_INSTALL_FULL_BINDIR}") +set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}") set(PACKAGE_VERSION "${LIB_VERSION}") set(PKG_CONFIG_CFLAGS ) set(PKG_CONFIG_PRIVATE_LIBS ) -- cgit v1.2.3