This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch find_fwide_windows
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git

commit 8375a58ab218df774039d4ef3a079f411b9e4414
Author: Stephen Webb <[email protected]>
AuthorDate: Fri Aug 18 13:45:34 2023 +1000

    Fix 'fwide - not found' during cmake configuration on Windows
---
 src/main/include/CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/include/CMakeLists.txt b/src/main/include/CMakeLists.txt
index b1b5bc6f..77909fc6 100644
--- a/src/main/include/CMakeLists.txt
+++ b/src/main/include/CMakeLists.txt
@@ -106,10 +106,10 @@ include(CheckIncludeFileCXX)
 include(CheckLibraryExists)
 
 CHECK_INCLUDE_FILE_CXX(locale HAS_STD_LOCALE)
-CHECK_FUNCTION_EXISTS(mbsrtowcs HAS_MBSRTOWCS)
-CHECK_FUNCTION_EXISTS(wcstombs HAS_WCSTOMBS)
-CHECK_FUNCTION_EXISTS(fwide HAS_FWIDE)
-CHECK_FUNCTION_EXISTS(syslog HAS_SYSLOG)
+CHECK_SYMBOL_EXISTS(mbsrtowcs "cwchar" HAS_MBSRTOWCS)
+CHECK_SYMBOL_EXISTS(wcstombs "cstdlib" HAS_WCSTOMBS)
+CHECK_SYMBOL_EXISTS(fwide "cwchar" HAS_FWIDE )
+CHECK_SYMBOL_EXISTS(syslog "syslog.h" HAS_SYSLOG)
 if(UNIX)
     set(CMAKE_REQUIRED_LIBRARIES "pthread")
     CHECK_SYMBOL_EXISTS(pthread_sigmask "signal.h" HAS_PTHREAD_SIGMASK)

Reply via email to