From d29d02e8afc8afc87726c47dd91a89a5a51c84ec Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Sat, 30 Dec 2023 22:07:29 +0100 Subject: [PATCH] fix: add missing gmtime_r check (#1013) 909069ea8237b7261e21c47607fc89a16610a8f9 introduced optional gmtime_r support but did implement the function's availability check. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8ff59e..f96625c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -313,6 +313,7 @@ endif (WITH_SYMBOLIZE) # building the library. add_compile_definitions (GLOG_NO_SYMBOLIZE_DETECTION) +check_cxx_symbol_exists (gmtime_r "cstdlib;ctime" HAVE_GMTIME_R) check_cxx_symbol_exists (localtime_r "cstdlib;ctime" HAVE_LOCALTIME_R) set (SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P})