Commit 3a72f357 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Check for clock_gettime in librt

parent ddfdb1b1
...@@ -279,6 +279,9 @@ IF(UNIX) ...@@ -279,6 +279,9 @@ IF(UNIX)
MY_SEARCH_LIBS(setsockopt socket LIBSOCKET) MY_SEARCH_LIBS(setsockopt socket LIBSOCKET)
MY_SEARCH_LIBS(dlopen dl LIBDL) MY_SEARCH_LIBS(dlopen dl LIBDL)
MY_SEARCH_LIBS(sched_yield rt LIBRT) MY_SEARCH_LIBS(sched_yield rt LIBRT)
IF(NOT LIBRT)
MY_SEARCH_LIBS(clock_gettime rt LIBRT)
ENDIF()
FIND_PACKAGE(Threads) FIND_PACKAGE(Threads)
SET(CMAKE_REQUIRED_LIBRARIES SET(CMAKE_REQUIRED_LIBRARIES
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment