aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-11-01 10:03:05 -0800
committerChris Robinson <[email protected]>2009-11-01 10:03:05 -0800
commitdcd6a55529d70af2d9e39757579dfe67afbda8cf (patch)
treeb729c31a9ba1189c8506ebdc3d6b5c6709bffcce /CMakeLists.txt
parentfb258a7416a879bc19b92a2bae262d7d709cea72 (diff)
Use a realtime clock for measuring time
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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