Skip to content

Commit f55db93

Browse files
committed
ros2: add dependency on yaml_cpp_vendor
Signed-off-by: Rhys Mainwaring <[email protected]>
1 parent 8e2042b commit f55db93

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,8 @@ find_package(rclcpp REQUIRED)
2424
find_package(Eigen3 REQUIRED)
2525
find_package(GDAL 3 REQUIRED)
2626

27-
# macOS
28-
if(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
29-
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES arm64)
30-
link_directories(/opt/homebrew/opt/yaml-cpp/lib)
31-
endif()
32-
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES x84_64)
33-
link_directories(/usr/local/opt/yaml-cpp/lib)
34-
endif()
35-
endif()
27+
find_package(yaml_cpp_vendor REQUIRED)
28+
link_directories(${yaml_cpp_vendor_LIBRARY_DIRS})
3629

3730
# Reverse compatability for GDAL<3.5
3831
# https://gdal.org/development/cmake.html

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<depend>grid_map_ros</depend>
1919
<depend>libgdal-dev</depend>
2020
<depend>rclcpp</depend>
21+
<depend>yaml_cpp_vendor</depend>
2122
<exec_depend>ros2launch</exec_depend>
2223

2324
<export>

0 commit comments

Comments
 (0)