We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d1bae4 commit f90d22bCopy full SHA for f90d22b
CMakeLists.txt
@@ -29,7 +29,14 @@ find_package(ament_cmake REQUIRED)
29
foreach(Dependency IN ITEMS ${THIS_PACKAGE_INCLUDE_DEPENDS})
30
find_package(${Dependency} REQUIRED)
31
endforeach()
32
-find_package(Boost REQUIRED)
+
33
+if(POLICY CMP0167)
34
+ cmake_policy(SET CMP0167 NEW)
35
+endif()
36
+find_package(Boost QUIET COMPONENTS headers)
37
+if(NOT Boost_headers_FOUND)
38
+ find_package(Boost REQUIRED)
39
40
41
add_library(realtime_tools SHARED
42
src/realtime_clock.cpp
0 commit comments