Skip to content

Commit

Permalink
fix target link
Browse files Browse the repository at this point in the history
  • Loading branch information
matheecs committed Oct 23, 2024
1 parent 1a956be commit 680299d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions example/g1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ target_link_libraries(g1_ankle_swing_example unitree_sdk2)

find_package(yaml-cpp QUIET)
if(yaml-cpp_FOUND)
if (${yaml-cpp_VERSION} VERSION_GREATER_EQUAL "0.7")
if (${yaml-cpp_VERSION} VERSION_GREATER_EQUAL "0.6")
message(STATUS "Found yaml-cpp version ${yaml-cpp_VERSION}")
add_executable(g1_dual_arm_example low_level/g1_dual_arm_example.cpp)
target_include_directories(g1_dual_arm_example PRIVATE ${YAML_CPP_INCLUDE_DIRS})
target_link_libraries(g1_dual_arm_example PRIVATE unitree_sdk2 ${YAML_CPP_LIBRARIES})
target_link_libraries(g1_dual_arm_example PRIVATE unitree_sdk2 yaml-cpp)
target_compile_definitions(g1_dual_arm_example PUBLIC BLIB_DIR="${CMAKE_CURRENT_SOURCE_DIR}/low_level/behavior_lib/")
else()
message(STATUS "yaml-cpp version ${yaml-cpp_VERSION} is too old, skipping build of g1_dual_arm_example.")
Expand Down

0 comments on commit 680299d

Please sign in to comment.