Skip to content

Commit 31bfd5a

Browse files
committed
Update boost linking
1 parent a5986b8 commit 31bfd5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ find_package(rclcpp REQUIRED)
1010
find_package(sensor_msgs REQUIRED)
1111

1212
find_package(OpenCV REQUIRED)
13-
find_package(Boost REQUIRED COMPONENTS thread)
13+
find_package(Boost REQUIRED COMPONENTS system)
1414

1515
find_package(PkgConfig REQUIRED)
1616
pkg_check_modules(avcodec libavcodec REQUIRED)
@@ -36,7 +36,6 @@ endif()
3636

3737
## Specify additional locations of header files
3838
include_directories(include
39-
${Boost_INCLUDE_DIRS}
4039
${avcodec_INCLUDE_DIRS}
4140
${avformat_INCLUDE_DIRS}
4241
${avutil_INCLUDE_DIRS}
@@ -68,7 +67,8 @@ target_link_libraries(${PROJECT_NAME}
6867
cv_bridge::cv_bridge
6968
image_transport::image_transport
7069
rclcpp::rclcpp
71-
${Boost_LIBRARIES}
70+
Boost::boost
71+
Boost::system
7272
${OpenCV_LIBS}
7373
${avcodec_LIBRARIES}
7474
${avformat_LIBRARIES}

0 commit comments

Comments
 (0)