diff options
author | Ivan Zhakov <ivan@apache.org> | 2023-01-18 21:20:53 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2023-01-18 21:20:53 +0000 |
commit | dd4561dd17a669a8c1757ada0ca875dfa840d0e7 (patch) | |
tree | a99a47e2a7c7bfe8a0ae06403bcbf58d2ba5bcc3 /CMakeLists.txt | |
parent | a829ac7f3f543ce6849d563aed4b6d602a7ca0e7 (diff) | |
download | httpd-dd4561dd17a669a8c1757ada0ca875dfa840d0e7.tar.gz |
* 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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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() |