Skip to content

CMake pkg-config modulification#5206

Merged
pks-t merged 2 commits into
libgit2:masterfrom
tiennou:cmake/pkgconfig-building
Sep 19, 2019
Merged

CMake pkg-config modulification#5206
pks-t merged 2 commits into
libgit2:masterfrom
tiennou:cmake/pkgconfig-building

Conversation

@tiennou

@tiennou tiennou commented Aug 17, 2019

Copy link
Copy Markdown
Contributor

This is the CMake module I wrote for mbedTLS, which tries to streamline writing pkg-config files, in an attempt to fix #5203.

This is incomplete (I think), but I'll need guidance, because macOS usually doesn't really care about *.pc files anyways.

Here's a gist of the current changes introduced, at least on macOS. I do think the Libs.private looks "saner", but the Requires.private isn't there yet.

@pks-t pks-t left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this quite a lot. As you said, Requires.private is still missing, but apart from that it already looks quite nice to me. Does this also handle paths with spaces correctly, e.g. for the prefix or linker flags?

Comment thread cmake/Modules/PkgBuildConfig.cmake
@tiennou tiennou force-pushed the cmake/pkgconfig-building branch from e9a076a to 564b3ff Compare September 14, 2019 07:33
@tiennou

tiennou commented Sep 14, 2019

Copy link
Copy Markdown
Contributor Author

Okay, I've added some quoting in the hope that would be sufficient 😉. I've updated the gist with an OpenSSL, non-PCRE run, as a syntax check.

@pks-t pks-t merged commit aa407ca into libgit2:master Sep 19, 2019
@pks-t

pks-t commented Sep 19, 2019

Copy link
Copy Markdown
Member

Tried it on my own system and everything looked good to me. Thanks a lot, @tiennou!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PCRE dependency information is not stored in libgit2.pc

2 participants