]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* CMakeLists.txt: Support building against static version of PCRE2.
authorIvan Zhakov <ivan@apache.org>
Wed, 18 Jan 2023 21:20:53 +0000 (21:20 +0000)
committerIvan Zhakov <ivan@apache.org>
Wed, 18 Jan 2023 21:20:53 +0000 (21:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906778 13f79535-47bb-0310-9956-ffa450edef68

CMakeLists.txt

index e77a70c6e01f0d268c326725cc1ade5cae7def17..39918754dd391a76fb796a6af121cadddd626b85 100644 (file)
@@ -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()