This commit is contained in:
2024-01-18 17:17:18 +08:00
parent 841bcc3998
commit aedcdbd610
6 changed files with 53 additions and 3 deletions

View File

@@ -95,6 +95,8 @@ if (NOT MSVC)
endif()
if (NOT WIN32)
check_symbol_exists(clock_gettime "time.h" HAVE_CLOCK_GETTIME)
check_symbol_exists(usleep "unistd.h" HAVE_USLEEP)
check_symbol_exists(nanosleep "time.h" HAVE_NANOSLEEP)
endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/utils_config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/utils_config.h")