fix: add missing gmtime_r check (#1013)
909069ea8237b7261e21c47607fc89a16610a8f9 introduced optional gmtime_r
support but did implement the function's availability check.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8ff59e..f96625c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -313,6 +313,7 @@
# 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})