From a87e9e104239785058e91811ea1dbf5bdc44e919 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Tue, 12 Sep 2023 10:36:35 +0200 Subject: [PATCH] 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 --- cmake/findDependencies.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake index 6f31bff00..da6d63975 100644 --- a/cmake/findDependencies.cmake +++ b/cmake/findDependencies.cmake @@ -31,7 +31,7 @@ endif() if (HAVE_RULES) find_path(PCRE_INCLUDE pcre.h) - find_library(PCRE_LIBRARY pcre) + find_library(PCRE_LIBRARY NAMES pcre pcred) if (NOT PCRE_LIBRARY OR NOT PCRE_INCLUDE) message(FATAL_ERROR "pcre dependency for RULES has not been found") endif()