File roscpp-set-monotonic-clock.diff of Package roscpp
--- CMakeLists.txt.orig 2022-08-01 22:21:43.263117149 -0500
+++ CMakeLists.txt 2022-08-01 22:26:12.259332318 -0500
@@ -24,6 +24,11 @@
find_package(Boost REQUIRED COMPONENTS chrono filesystem system)
+# Apparently this was removed because it is the default in boost >= 1.67
+if(Boost_VERSION LESS 106700)
+ add_definitions(-DBOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC)
+endif()
+
include_directories(include ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_INCLUDE_DESTINATION}/ros ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
# this is needed for use within a bazel workspace. See #1548 for details.
include_directories(${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_INCLUDE_DESTINATION})