From a7d7e0d28925b01044ade6a5b9e288af8828239b Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 30 Jan 2011 23:16:43 -0800 Subject: uhd: use time spec get_system_time to simplify soft time control --- host/lib/types/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib/types') diff --git a/host/lib/types/CMakeLists.txt b/host/lib/types/CMakeLists.txt index bcc04e08d..ad625111e 100644 --- a/host/lib/types/CMakeLists.txt +++ b/host/lib/types/CMakeLists.txt @@ -58,7 +58,8 @@ CHECK_CXX_SOURCE_COMPILES(" IF(HAVE_CLOCK_GETTIME) MESSAGE(STATUS " High resolution timing supported through clock_gettime.") - ADD_DEFINITIONS(-DTIME_SPEC_USE_GETTIME) + ADD_DEFINITIONS(-DTIME_SPEC_USE_CLOCK_GETTIME) + SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lrt") ELSEIF(HAVE_MACH_ABSOLUTE_TIME) MESSAGE(STATUS " High resolution timing supported through mach_absolute_time.") ADD_DEFINITIONS(-DTIME_SPEC_USE_MACH_ABSOLUTE_TIME) -- cgit v1.2.3