1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00

Check for clock_gettime in librt

This commit is contained in:
Vladislav Vaintroub
2009-12-10 04:09:32 +01:00
parent ddfdb1b1d1
commit 3a72f357ee

View File

@@ -279,6 +279,9 @@ IF(UNIX)
MY_SEARCH_LIBS(setsockopt socket LIBSOCKET)
MY_SEARCH_LIBS(dlopen dl LIBDL)
MY_SEARCH_LIBS(sched_yield rt LIBRT)
IF(NOT LIBRT)
MY_SEARCH_LIBS(clock_gettime rt LIBRT)
ENDIF()
FIND_PACKAGE(Threads)
SET(CMAKE_REQUIRED_LIBRARIES