aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-05-24 23:26:18 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-05-24 23:26:18 +0200
commit59f7647cd97c62ab7a26725e5a166dcb54b27bc6 (patch)
tree34dad1189e803af0b8d1d3caa83cd220a950bc3f /ConfigureChecks.cmake
parent4d6b1aa2c7ea67d6909680254b7ae68aa437a6ef (diff)
downloadlibssh-59f7647cd97c62ab7a26725e5a166dcb54b27bc6.tar.gz
libssh-59f7647cd97c62ab7a26725e5a166dcb54b27bc6.tar.xz
libssh-59f7647cd97c62ab7a26725e5a166dcb54b27bc6.zip
Introduced ssh_timeout_elapsed functions
Functions to mesure elapsed time before and after a serie of calls. Introduces a dependancy to clock_gettime() and librt, hope this doesn't break anything. Porting to gettimeofday() should not be too hard.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index b476d8a..39b9767 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