From 2f178f390fce67bcfd1868ad14daee9778a4f941 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Mon, 20 Feb 2017 21:13:54 +0100 Subject: [PATCH] Use full CMake paths in pkg-config template Using full paths is more versatile. The current solution breaks when specifying an absolute path for CMAKE_INSTALL_INCLUDEDIR which is an otherwise supported option by CMake's GNUInstallDirs. CMake does not support Autoconf-style ${prefix}-pseudo variables, hence trying to emulate the behaviour gains us nothing and breaks providing absolute paths to CMAKE_INSTALL_LIBDIR. --- pkg-config/jsoncpp.pc.in | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg-config/jsoncpp.pc.in b/pkg-config/jsoncpp.pc.in index bfaa0dd..dea51f5 100644 --- a/pkg-config/jsoncpp.pc.in +++ b/pkg-config/jsoncpp.pc.in @@ -1,7 +1,5 @@ -prefix=@CMAKE_INSTALL_PREFIX@ -exec_prefix=${prefix} -libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ +includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ Name: jsoncpp Description: A C++ library for interacting with JSON