Skip to content

Commit 5cdb4eb

Browse files
author
Dale Mellor
committed
Put full paths in pkg-config specification.
Currently, 'pkg-config --cflags curlpp' gives '-Iinclude', which is not good enough for outside projects to link to this package. * extras/curlpp.pc.in: use internal variables to make the generated specifications more precise.
1 parent e94744a commit 5cdb4eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extras/curlpp.pc.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This is a comment
22
prefix=@prefix@
3-
exec_prefix=@prefix@
4-
includedir=@includedir@
3+
exec_prefix=${prefix}
4+
includedir=${prefix}/@includedir@
5+
libdir=${exec_prefix}/@libdir@
56

67
Name: curlpp
78
Description: cURLpp is a libcurl C++ wrapper
89
Version: @VERSION@
9-
Libs: -L@libdir@ -lcurlpp @LDFLAGS@ @LIBS@
10-
Cflags: -I@includedir@ @CURLPP_CXXFLAGS@
10+
Libs: -L${libdir} -lcurlpp @LDFLAGS@ @LIBS@
11+
Cflags: -I${includedir} @CURLPP_CXXFLAGS@
1112
# libcurl is required as non-private because CurlHandle.inl uses curl_easy_setopt.
1213
Requires: libcurl
13-

0 commit comments

Comments
 (0)