Skip to content

Commit a87e9e1

Browse files
Consider pcre debug suffix for Windows (#5429)
I'm suggesting this patch from the conan recipe: https://github.com/conan-io/conan-center-index/blob/afcf3ba/recipes/cppcheck/all/patches/0003-pcre-debuglib-name.patch
1 parent 18ee859 commit a87e9e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/findDependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131

3232
if (HAVE_RULES)
3333
find_path(PCRE_INCLUDE pcre.h)
34-
find_library(PCRE_LIBRARY pcre)
34+
find_library(PCRE_LIBRARY NAMES pcre pcred)
3535
if (NOT PCRE_LIBRARY OR NOT PCRE_INCLUDE)
3636
message(FATAL_ERROR "pcre dependency for RULES has not been found")
3737
endif()

0 commit comments

Comments
 (0)