diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/launch-darkly-server/findPCRE.patch | |
Diffstat (limited to 'vcpkg/ports/launch-darkly-server/findPCRE.patch')
| -rw-r--r-- | vcpkg/ports/launch-darkly-server/findPCRE.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/launch-darkly-server/findPCRE.patch b/vcpkg/ports/launch-darkly-server/findPCRE.patch new file mode 100644 index 0000000..50633fd --- /dev/null +++ b/vcpkg/ports/launch-darkly-server/findPCRE.patch @@ -0,0 +1,17 @@ +diff --git a/cmake/FindPCRE.cmake b/cmake/FindPCRE.cmake +index dbbd60a..68042fe 100644 +--- a/cmake/FindPCRE.cmake ++++ b/cmake/FindPCRE.cmake +@@ -19,7 +19,11 @@ + FIND_PATH(PCRE_INCLUDE_DIR NAMES pcre.h) + + # Look for the library. +-FIND_LIBRARY(PCRE_LIBRARY NAMES pcre) ++SET(pcre_DEBUG_NAME "") ++IF(CMAKE_BUILD_TYPE MATCHES "Debug") ++ SET(pcre_DEBUG_NAME pcred) ++ENDIF() ++FIND_LIBRARY(PCRE_LIBRARY NAMES ${pcre_DEBUG_NAME} pcre) + + # Handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if all listed variables are TRUE. + INCLUDE(FindPackageHandleStandardArgs) |