Skip to content

Conversation

@guijan
Copy link
Contributor

@guijan guijan commented May 27, 2022

pkg-config makes curlcpp easy to use with non-CMake build systems like the .cmake files make it easy to use with CMake.

I've tested this on OpenBSD.

@JosephP91
Copy link
Owner

Hi @guijan did you performed tests on CMake build sytems after the change? Thanks!

@guijan
Copy link
Contributor Author

guijan commented May 27, 2022

No, I only tried Meson. And good call, because it was broken. I'll work on it more.

@guijan guijan marked this pull request as draft May 27, 2022 20:54
@guijan guijan force-pushed the add-pkgconfig branch 2 times, most recently from c9c4917 to 55a6ba9 Compare May 30, 2022 05:17
pkg-config makes curlcpp easy to use with non-CMake build systems like the .cmake files make it easy to use with CMake. Done with a lot of help from @eli-schwartz.
@guijan
Copy link
Contributor Author

guijan commented Jun 1, 2022

The initial version must have been the worst PR I have ever sent, but now I think it's in good shape.

I wrote a test project that depends on curlcpp with CMake, Meson, and POSIX Make build definitions: https://github.com/guijan/curlcpp-pc-test
I built commit 5711b49, installed curlcpp to an "install" subdirectory in the source tree by setting CMAKE_PREFIX_PATH from the command line, then exported PKG_CONFIG_PATH to "./lib/pkgconfig" within that subdirectory. With that setup, I've successfully built the test project using all 3 build systems on OpenBSD and Alpine Linux.

@guijan guijan marked this pull request as ready for review June 1, 2022 00:13
@JosephP91 JosephP91 merged commit d867cdc into JosephP91:master Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants