Skip to content

Commit d189d7b

Browse files
committed
Improve pkgconfig setting
This changes allows to use #include <json-c/json.h> instead of just #include <json.h> This is normally possible but in some tricky case this usage is broken without this change. Here is the case that I encountered. I had to compile json-c fresh version for some investigations on newer versions. Then I installed it on my local environment using option --prefix. After that I had 2 versions: - the system wide version in usual locations /usr/lib and /usr/include - mine in my HOME directory Then, as I'm used to include <json-c/json.h>, the included iheder's version was the system wide one whereas the linked lib was mine. Signed-off-by: Jose Bollo <[email protected]>
1 parent 2327b23 commit d189d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json-c.pc.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Version: @VERSION@
99
Requires:
1010
Libs.private: @LIBS@
1111
Libs: -L${libdir} -ljson-c
12-
Cflags: -I${includedir}/json-c
12+
Cflags: -I${includedir} -I${includedir}/json-c

0 commit comments

Comments
 (0)