From dd4561dd17a669a8c1757ada0ca875dfa840d0e7 Mon Sep 17 00:00:00 2001 From: Ivan Zhakov Date: Wed, 18 Jan 2023 21:20:53 +0000 Subject: * CMakeLists.txt: Support building against static version of PCRE2. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906778 13f79535-47bb-0310-9956-ffa450edef68 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e77a70c6e0..39918754dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,12 @@ IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcre2-8d.lib") ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcre2-8.lib") SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre2-8.lib) SET(default_pcre_cflags "-DHAVE_PCRE2") +ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcre2-8d-static.lib") + SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre2-8d-static.lib) + SET(default_pcre_cflags "-DHAVE_PCRE2 -DPCRE2_STATIC") +ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcre2-8-static.lib") + SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre2-8-static.lib) + SET(default_pcre_cflags "-DHAVE_PCRE2 -DPCRE2_STATIC") ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcred.lib") SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcred.lib) ELSE() -- cgit v1.2.3