You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by iv...@apache.org on 2023/01/18 21:20:53 UTC

svn commit: r1906778 - /httpd/httpd/trunk/CMakeLists.txt

Author: ivan
Date: Wed Jan 18 21:20:53 2023
New Revision: 1906778

URL: http://svn.apache.org/viewvc?rev=1906778&view=rev
Log:
* CMakeLists.txt: Support building against static version of PCRE2.

Modified:
    httpd/httpd/trunk/CMakeLists.txt

Modified: httpd/httpd/trunk/CMakeLists.txt
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CMakeLists.txt?rev=1906778&r1=1906777&r2=1906778&view=diff
==============================================================================
--- httpd/httpd/trunk/CMakeLists.txt (original)
+++ httpd/httpd/trunk/CMakeLists.txt Wed Jan 18 21:20:53 2023
@@ -55,6 +55,12 @@ IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/p
 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()