Skip to content

Commit 21e3d21

Browse files
nehebbaylesj
authored andcommitted
pkgconfig: Fix for cross compilation (open-source-parsers#1027)
exec_ and prefix must be overridden in such a case. Makes the .pc file more consistent with other projects.
1 parent c97bd59 commit 21e3d21

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg-config/jsoncpp.pc.in

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
2-
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
1+
prefix=@CMAKE_INSTALL_PREFIX@
2+
exec_prefix=@CMAKE_INSTALL_PREFIX@
3+
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
4+
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
35

46
Name: jsoncpp
57
Description: A C++ library for interacting with JSON

0 commit comments

Comments
 (0)