From 21e3d2124353ae27fdafe80a7b3081b5dad49609 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 17 Sep 2019 12:46:55 -0700 Subject: [PATCH] pkgconfig: Fix for cross compilation (#1027) exec_ and prefix must be overridden in such a case. Makes the .pc file more consistent with other projects. --- pkg-config/jsoncpp.pc.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg-config/jsoncpp.pc.in b/pkg-config/jsoncpp.pc.in index dea51f5..d4fa9ef 100644 --- a/pkg-config/jsoncpp.pc.in +++ b/pkg-config/jsoncpp.pc.in @@ -1,5 +1,7 @@ -libdir=@CMAKE_INSTALL_FULL_LIBDIR@ -includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ Name: jsoncpp Description: A C++ library for interacting with JSON