Link with -lrt when using the old header-only boost timer library (boost < 1.48)

release/4.3a0
Richard Roberts 2014-02-13 14:20:25 -05:00
parent 6df79b8dac
commit dec9dbbe60
1 changed files with 1 additions and 0 deletions

View File

@ -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()