Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: set PCRE2POSIX_CFLAG in pcre2-config and pkg-config #311

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

carenas
Copy link
Contributor

@carenas carenas commented Oct 20, 2023

Fix an edge case from #249 for a library that was installed by cmake but that is built against using a different method.

Since a8a875e (windows: integrate visibility attributes without
conflicts (PCRE2Project#249), 2023-05-16) setting CFLAGS when using a DLL is
recommended, but the pcre2-config and pkgconfig files generated
by cmake didn't include that logic, unlike the ones generated by
the autotools.

While at it, refactor the code so it will be more modern and it
wouldn't unnecessarily install the pcre2posix pkgconfig if not
needed and make sure the generated pcre2-config uses UNIX EOL.
@PhilipHazel PhilipHazel merged commit d01cd71 into PCRE2Project:master Oct 21, 2023
8 checks passed
@carenas carenas deleted the posixshared branch October 21, 2023 17:19
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.

2 participants