Check for secure_getenv() and strerror() in CMake build.

This commit is contained in:
Philip.Hazel 2020-04-09 15:25:14 +00:00
parent 9cebee7e75
commit 28f92c8596
3 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,5 @@
# CMakeLists.txt
#
#
# This file enables PCRE2 to be built with the CMake configuration and build
# tool. Download CMake in source or binary form from http://www.cmake.org/
# Converted to support PCRE2 from the original PCRE file, August 2014.
@ -87,6 +86,7 @@
# 2019-02-16 PH hacked to avoid CMP0026 policy issue (see comments below)
# 2020-03-16 PH renamed dftables as pcre2_dftables (as elsewhere)
# 2020-03-24 PH changed CMAKE_MODULE_PATH definition to add, not replace
# 2020-04-08 Carlo added function check for secure_getenv, fixed strerror
PROJECT(PCRE2 C)
@ -128,6 +128,7 @@ CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H)
CHECK_FUNCTION_EXISTS(bcopy HAVE_BCOPY)
CHECK_FUNCTION_EXISTS(memmove HAVE_MEMMOVE)
CHECK_FUNCTION_EXISTS(strerror HAVE_STRERROR)
CHECK_FUNCTION_EXISTS(secure_getenv HAVE_SECURE_GETENV)
# User-configurable options
#

View File

@ -99,6 +99,8 @@ LIST(APPEND...) to allow a setting from the command line to be included.
23. Updated to Unicode 13.0.0.
24. CMake build now checks for secure_getenv() and strerror(). Patch by Carlo.
Version 10.34 21-November-2019
------------------------------

View File

@ -11,6 +11,8 @@
#cmakedefine HAVE_BCOPY 1
#cmakedefine HAVE_MEMMOVE 1
#cmakedefine HAVE_STRERROR 1
#cmakedefine HAVE_SECURE_GETENV 1
#cmakedefine PCRE2_STATIC 1