diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index b476d8ae..39b9767b 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -120,6 +120,11 @@ if (UNIX) check_function_exists(regcomp HAVE_REGCOMP) endif (UNIX) +check_library_exists(rt clock_gettime "" HAVE_LIBRT) +if (HAVE_LIBRT) + set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} rt) +endif (HAVE_LIBRT) + set(LIBSSH_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "libssh required system libraries") # LIBRARIES |