Skip to content

Commit 43cd03d

Browse files
Tacha-Srhaschke
authored andcommitted
Use libyaml_vendor package
1 parent 0c0f47f commit 43cd03d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

visualization/motion_planning_tasks/properties/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ set(SOURCES
55
property_from_yaml.cpp
66
)
77

8-
find_package(PkgConfig REQUIRED)
9-
pkg_check_modules(YAML REQUIRED yaml-0.1)
10-
# Only cmake > 3.12 provides XXX_LINK_LIBRARIES. Find the absolute path manually
11-
find_library(YAML_LIBRARIES ${YAML_LIBRARIES} PATHS ${YAML_LIBRARY_DIRS})
8+
find_package(libyaml_vendor REQUIRED)
9+
find_package(yaml REQUIRED)
1210

1311
add_library(${MOVEIT_LIB_NAME} SHARED ${SOURCES})
1412

1513
target_link_libraries(${MOVEIT_LIB_NAME}
16-
${QT_LIBRARIES} ${YAML_LIBRARIES}
14+
${QT_LIBRARIES} yaml
1715
)
1816
target_include_directories(${MOVEIT_LIB_NAME}
1917
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>

visualization/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<depend>moveit_ros_visualization</depend>
1919
<depend>rclcpp</depend>
2020
<depend>rviz2</depend>
21-
<depend>yaml</depend>
21+
<depend>libyaml_vendor</depend>
2222

2323
<test_depend>ament_cmake_gmock</test_depend>
2424
<test_depend>ament_cmake_gtest</test_depend>

0 commit comments

Comments
 (0)