diff --git a/ports/poco/find_pcre.patch b/ports/poco/find_pcre.patch index 1a07882bcd283b..96f1185f4f81c9 100644 --- a/ports/poco/find_pcre.patch +++ b/ports/poco/find_pcre.patch @@ -1,13 +1,17 @@ diff --git a/cmake/FindPCRE.cmake b/cmake/FindPCRE.cmake -index 41a99cb..77f3a42 100644 +index 41a99cb57..3236b97e8 100644 --- a/cmake/FindPCRE.cmake +++ b/cmake/FindPCRE.cmake -@@ -14,7 +14,7 @@ ENDIF (PCRE_INCLUDE_DIRS) +@@ -14,7 +14,11 @@ ENDIF (PCRE_INCLUDE_DIRS) FIND_PATH(PCRE_INCLUDE_DIR pcre.h) -SET(PCRE_NAMES pcre) -+SET(PCRE_NAMES pcred pcre) ++if(CMAKE_BUILD_TYPE STREQUAL Debug) ++ SET(PCRE_NAMES pcred pcre) ++else() ++ SET(PCRE_NAMES pcre pcred) ++endif() FIND_LIBRARY(PCRE_LIBRARY NAMES ${PCRE_NAMES} ) # handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if