Skip to content

Commit

Permalink
Resolved build error with yaml-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-palmer authored and vooon committed Sep 14, 2024
1 parent f6ef0f2 commit 6da1910
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mavros_extras/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ find_package(libmavconn REQUIRED)

find_package(eigen3_cmake_module REQUIRED)
find_package(Eigen3 REQUIRED)
# find_package(yaml_cpp REQUIRED)
find_package(yaml-cpp REQUIRED)
find_package(yaml_cpp_vendor REQUIRED)

## Find GeographicLib
Expand Down Expand Up @@ -132,6 +132,7 @@ add_library(mavros_extras_plugins SHARED
src/plugins/wheel_odometry.cpp
# [[[end]]] (checksum: 1f8cd51fa90b89b27ee35d276b5f8c83)
)
target_link_libraries(mavros_extras_plugins yaml-cpp::yaml-cpp)
ament_target_dependencies(mavros_extras_plugins
angles
geometry_msgs
Expand Down Expand Up @@ -164,6 +165,7 @@ add_library(mavros_extras SHARED
src/lib/servo_state_publisher.cpp
# [[[end]]] (checksum: a3ce43c71c567f697861bcbcd0f25aa3)
)
target_link_libraries(mavros_extras yaml-cpp::yaml-cpp)
ament_target_dependencies(mavros_extras
rclcpp
rclcpp_components
Expand Down

0 comments on commit 6da1910

Please sign in to comment.