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.
This commit is contained in:
zeerd 2018-02-06 09:56:13 +08:00 committed by GitHub
parent 7cc52f6035
commit d04fb86e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
prefix=@prefix@ prefix=@CMAKE_INSTALL_PREFIX@
libdir=${prefix}/@libdir@ libdir=${prefix}/lib
includedir=${prefix}/@includedir@ includedir=${prefix}/include
Name: libcjson Name: libcjson
Version: @version@ Version: @version@