From dcd6a55529d70af2d9e39757579dfe67afbda8cf Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 1 Nov 2009 10:03:05 -0800 Subject: Use a realtime clock for measuring time --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 533daa30..b11a20d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,6 +234,11 @@ IF(NOT HAVE_WINDOWS_H) IF(HAVE_LIBPTHREAD) SET(EXTRA_LIBS pthread ${EXTRA_LIBS}) ENDIF() + + CHECK_LIBRARY_EXISTS(rt clock_gettime "" HAVE_LIBRT) + IF(HAVE_LIBRT) + SET(EXTRA_LIBS rt ${EXTRA_LIBS}) + ENDIF() ENDIF() # Check for a 64-bit type -- cgit v1.2.3