mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 14:29:00 +08:00
1c3635eabd
* 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
18 lines
578 B
Diff
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)
|