Skip to content

Commit

Permalink
fixes issue orbbec#199
Browse files Browse the repository at this point in the history
  • Loading branch information
Mechazo11 committed May 24, 2024
1 parent eefd2a0 commit f4027f3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ find_package(catkin REQUIRED
)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(Boost REQUIRED)
#find_package(Boost REQUIRED) # Causes build error as discussed here https://github.com/orbbec/ros_astra_camera/issues/199
find_package(Boost REQUIRED COMPONENTS filesystem)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINITIONS})
endif()
find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)
pkg_search_module(LIBUVC REQUIRED libuvc)
Expand Down Expand Up @@ -163,6 +169,7 @@ target_link_libraries(${PROJECT_NAME}
${LIBUVC_LIBRARIES}
${RK_MPP_LIBRARIES}
${RK_RGA_LIBRARIES}
${Boost_LIBRARIES} # Added 05/24/24
)

add_dependencies(${PROJECT_NAME}
Expand Down Expand Up @@ -194,6 +201,7 @@ target_link_libraries(${PROJECT_NAME}_node
${OpenCV_LIBS}
${LIBUVC_LIBRARIES}
${GLOG_LIBRARIES}
${Boost_LIBRARIES} # Added 05/24/24
)

add_executable(list_devices_node
Expand All @@ -218,6 +226,7 @@ target_link_libraries(list_devices_node
${OpenCV_LIBS}
${GLOG_LIBRARIES}
${LIBUVC_LIBRARIES}
${Boost_LIBRARIES} # Added 05/24/24
)


Expand Down

0 comments on commit f4027f3

Please sign in to comment.