From dec9dbbe60b26320de235c6fa234164ff92006f1 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Thu, 13 Feb 2014 14:20:25 -0500 Subject: [PATCH] Link with -lrt when using the old header-only boost timer library (boost < 1.48) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 337fd19a4..10b4bf17c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,6 +132,7 @@ else() if(Boost_TIMER_LIBRARY) list(APPEND GTSAM_BOOST_LIBRARIES ${Boost_TIMER_LIBRARY} ${Boost_CHRONO_LIBRARY}) else() + list(APPEND GTSAM_BOOST_LIBRARIES rt) # When using the header-only boost timer library, need -lrt message("WARNING: GTSAM timing instrumentation will use the older, less accurate, Boost timer library because boost older than 1.48 was found.") endif() endif()