You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
890 B

  1. From 63dc2f77e33e9ff559e051cd2964960b9d3e761e Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Mon, 16 Sep 2019 18:38:24 -0700
  4. Subject: [PATCH] pkgconfig: Fix for cross compilation
  5. exec_ and prefix must be overridden in such a case.
  6. Makes the .pc file more consistent with other projects.
  7. ---
  8. pkg-config/jsoncpp.pc.in | 6 ++++--
  9. 1 file changed, 4 insertions(+), 2 deletions(-)
  10. diff --git a/pkg-config/jsoncpp.pc.in b/pkg-config/jsoncpp.pc.in
  11. index dea51f51..d4fa9ef2 100644
  12. --- a/pkg-config/jsoncpp.pc.in
  13. +++ b/pkg-config/jsoncpp.pc.in
  14. @@ -1,5 +1,7 @@
  15. -libdir=@CMAKE_INSTALL_FULL_LIBDIR@
  16. -includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
  17. +prefix=@CMAKE_INSTALL_PREFIX@
  18. +exec_prefix=@CMAKE_INSTALL_PREFIX@
  19. +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
  20. +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
  21. Name: jsoncpp
  22. Description: A C++ library for interacting with JSON