curlpp-config and pkg-config give imperfect values
jplflyer opened this issue · 1 comments
jplflyer commented
The PDF documentation says to do some combination of these commands:
curlpp-config --cflags
pkg-config --cflags curlpp
curlpp-config --libs
When I built, I cloned the repo then did:
mkdir build
cd build
cmake ..
make
sudo make install
There's a complete lack of documentation that I could find suggesting a different set of commands. Things appear to install properly under /usr/local/lib and /usr/local/include, exactly as I'd expect.
But the commands above produce:
$ curlpp-config --cflags
-Iinclude
$ pkg-config --cflags curlpp
-Iinclude -I/usr/include/x86_64-linux-gnu
$ curlpp-config --libs
-Llib -lcurl -lcurlpp
The -Iinclude should actually fit where the code was installed. -I/usr/local/include. The -L command should be -L/usr/local/lib. I'm not sure about the pkg-config desire to list an include the linker already seems to search.