Skip to content

Commit

Permalink
Add patch for yamlcpp link problems (#60)
Browse files Browse the repository at this point in the history
* yamlcpp isn't exported correctly upstream
* This is a temporary patch

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
  • Loading branch information
Ryanf55 committed Feb 1, 2024
1 parent 3fd9206 commit 02189d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 02189d6

Please sign in to comment.