Skip to content

Conversation

Phatcat
Copy link
Contributor

@Phatcat Phatcat commented Apr 27, 2025

Complete rewrite of FindPCRE.cmake module from scratch;

  • Properly allocate both release and debug libraries if available
  • Automatically prefer static libraries if found in this order;
    full static set -> static release -> full shared set -> shared release
  • Properly check the required version

Reported by the buildbot:

#16 0.557 -- Found PCRE: /usr/include (found suitable version "8.39", minimum required is "8.39")
#16 0.557 -- Using PCRE static release and debug libraries.

This is a proposed alternative to #92

Complete rewrite of FindPCRE.cmake module from scratch;

- Properly allocate both release and debug libraries
- Automatically prefer static libraries if found
- Properly check the set required version and use find_package_handle_standard_Args to throw an error if the version isn't matching or higher than requested
- Report which library (or several) are in use and if they're static or shared
@Chaosvex Chaosvex merged commit 30ee0fd into EmberEmu:development May 10, 2025
1 check passed
@Phatcat Phatcat deleted the pcre_retried branch May 10, 2025 04:00
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