Skip to content

Commit 02189d6

Browse files
authored
Add patch for yamlcpp link problems (#60)
* yamlcpp isn't exported correctly upstream * This is a temporary patch Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
1 parent 3fd9206 commit 02189d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ target_link_libraries(test_tif_loader PUBLIC
5959
${PROJECT_NAME}
6060
)
6161

62+
# Fix for yaml_cpp not resolving correctly on macOS
63+
# https://github.com/ethz-asl/grid_map_geo/pull/59#discussion_r1474669370
64+
if (APPLE)
65+
find_package(yaml_cpp_vendor REQUIRED)
66+
link_directories(${yaml_cpp_vendor_LIBRARY_DIRS})
67+
endif()
68+
6269
# Install
6370
install(
6471
DIRECTORY include/

0 commit comments

Comments
 (0)