summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@linux-rbsx>2009-12-10 04:09:32 +0100
committerVladislav Vaintroub <vvaintroub@linux-rbsx>2009-12-10 04:09:32 +0100
commit7c3ca3e682438a53fb4919fe4d1f69de80ca5d51 (patch)
treec96ab325db810eb3834507675a47142d56e0800a /configure.cmake
parentef4685eccf5b93c6d6df16421dcd9d7e1705e115 (diff)
downloadmariadb-git-7c3ca3e682438a53fb4919fe4d1f69de80ca5d51.tar.gz
Check for clock_gettime in librt
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index d1fc590a0cb..84a1b5f1dfb 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -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