This commit is contained in:
2024-01-13 17:19:37 +08:00
parent b6db76625b
commit 841bcc3998
6 changed files with 36 additions and 0 deletions

View File

@@ -93,6 +93,9 @@ if (NOT MSVC)
check_symbol_exists(timezone "time.h" HAVE_TIMEZONE)
check_symbol_exists(tzset "time.h" HAVE_TZSET)
endif()
if (NOT WIN32)
check_symbol_exists(clock_gettime "time.h" HAVE_CLOCK_GETTIME)
endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/utils_config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/utils_config.h")
if ("${CMAKE_C_COMPILER_ID}" STREQUAL GNU)