blavallee 1c3635eabd
[launch-darkly-server] Update to 2.8.6 (#28227)
* Update to 2.8.6

* Add versions

* Fix supports

* Update git-tree

* Fix format

* Update git-tree

* FIx actions

* Add license

* Update git-tree

* Apply suggestions

* Update git-tree

* Format requirement

* Update git-tree
2023-01-09 10:55:34 -08:00

18 lines
578 B
Diff

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)