Skip to content

cmake: drop posix dependency from pcre* detection - #6333

Merged
ethomson merged 1 commit into
libgit2:mainfrom
jpalus:pcre2-detection
Jul 7, 2022
Merged

cmake: drop posix dependency from pcre* detection#6333
ethomson merged 1 commit into
libgit2:mainfrom
jpalus:pcre2-detection

Conversation

@jpalus

@jpalus jpalus commented Jun 27, 2022

Copy link
Copy Markdown
Contributor

since f585b12 neither PCRE nor PCRE2 backends rely on POSIX regex, so
reflect it in library detection logic

@ethomson

ethomson commented Jul 7, 2022

Copy link
Copy Markdown
Member

This seems correct to me. But do we need to correct the pcre.h / pcreposix.h detection in FindPCRE.cmake as well? 🤔

@jpalus

jpalus commented Jul 7, 2022

Copy link
Copy Markdown
Contributor Author

Yes PCRE detection needs adjustment as well: both include file and linked libraries. Let me handle it too.

since f585b12 neither PCRE nor PCRE2 backends rely on POSIX regex, so
reflect it in library detection logic
@jpalus
jpalus force-pushed the pcre2-detection branch from 39627c5 to 636a275 Compare July 7, 2022 08:54
@jpalus jpalus changed the title cmake: change header used for pcre2 detection cmake: drop posix dependency from pcre* detection Jul 7, 2022
@jpalus

jpalus commented Jul 7, 2022

Copy link
Copy Markdown
Contributor Author

Updated PR with PCRE changes.

@ethomson

ethomson commented Jul 7, 2022

Copy link
Copy Markdown
Member

Awesome, thanks @jpalus !

@ethomson
ethomson merged commit 92ffdd2 into libgit2:main Jul 7, 2022
@jpalus
jpalus deleted the pcre2-detection branch July 7, 2022 17:07
@ethomson ethomson added the bug label Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants