From 69bd4ad33008b781db173679117d8f842c80898e Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Thu, 1 Feb 2024 09:21:11 -0700 Subject: [PATCH] Add patch for yamlcpp link problems * yamlcpp isn't exported correctly upstream * This is a temporary patch Signed-off-by: Ryan Friedman --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c180be9..78fecd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,13 @@ target_link_libraries(test_tif_loader PUBLIC ${PROJECT_NAME} ) +# Fix for yaml_cpp not resolving correctly on macOS +# https://github.com/ethz-asl/grid_map_geo/pull/59#discussion_r1474669370 +if (APPLE) + find_package(yaml_cpp_vendor REQUIRED) + link_directories(${yaml_cpp_vendor_LIBRARY_DIRS}) +endif() + # Install install( DIRECTORY include/