Skip to content

Commit 19bea93

Browse files
committed
add yaml-cpp to fix jazzy+ build
Signed-off-by: Mohamed Abdelaziz <[email protected]>
1 parent 2244b65 commit 19bea93

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

greenwave_monitor/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ endif()
2121

2222
# find dependencies
2323
find_package(ament_cmake_auto REQUIRED)
24+
find_package(yaml-cpp REQUIRED)
2425
ament_auto_find_build_dependencies()
2526

2627
# Add message_diagnostics.hpp as a header-only library
@@ -35,10 +36,13 @@ ament_target_dependencies(greenwave_monitor
3536
std_msgs
3637
diagnostic_msgs
3738
greenwave_monitor_interfaces
38-
yaml_cpp_vendor
3939
ament_index_cpp
40+
yaml_cpp_vendor
41+
)
42+
target_link_libraries(greenwave_monitor
43+
message_diagnostics
44+
yaml-cpp
4045
)
41-
target_link_libraries(greenwave_monitor message_diagnostics)
4246

4347
target_include_directories(greenwave_monitor PUBLIC
4448
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>

0 commit comments

Comments
 (0)