From d04fb86e66747bc419e7dcfdd5d3834d1fff8afe Mon Sep 17 00:00:00 2001 From: zeerd Date: Tue, 6 Feb 2018 09:56:13 +0800 Subject: [PATCH] libcjson.pc error in yocto environment In the yocto environment(http://www.yoctoproject.org/), the bitbake will add parameters automotively like below: -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_INSTALL_BINDIR:PATH=/usr/bin \ -DCMAKE_INSTALL_SBINDIR:PATH=/usr/sbin \ -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib/cjson-davegamble \ -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \ -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=/com \ -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \ -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \ -DCMAKE_INSTALL_INCLUDEDIR:PATH=/usr/include \ -DCMAKE_INSTALL_DATAROOTDIR:PATH=/usr/share \ and this will make mistake in the pc-file. --- library_config/libcjson.pc.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library_config/libcjson.pc.in b/library_config/libcjson.pc.in index b3a5b40..7b526df 100644 --- a/library_config/libcjson.pc.in +++ b/library_config/libcjson.pc.in @@ -1,6 +1,6 @@ -prefix=@prefix@ -libdir=${prefix}/@libdir@ -includedir=${prefix}/@includedir@ +prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${prefix}/lib +includedir=${prefix}/include Name: libcjson Version: @version@