Skip to content

Commit

Permalink
Merge pull request #2312 from nim65s/modernize-console-bridge
Browse files Browse the repository at this point in the history
CMake: modernize link to console_bridge
  • Loading branch information
jorisv committed Jul 11, 2024
2 parents 9905d98 + 5a361cd commit cfb3ddf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix visualization of meshes in meshcat ([#2294](https://github.com/stack-of-tasks/pinocchio/pull/2294))
- Fix Anymal simulation test ([#2299](https://github.com/stack-of-tasks/pinocchio/pull/2299))
- Fix contact derivatives and impulse dynamics tests ([#2300](https://github.com/stack-of-tasks/pinocchio/pull/2300))
- Fix CMake compatibility with old console_bridge version ([#2312](https://github.com/stack-of-tasks/pinocchio/pull/2312))

### Added

Expand Down
7 changes: 6 additions & 1 deletion bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ function(PINOCCHIO_PYTHON_BINDINGS_SPECIFIC_TYPE scalar_name)
if(BUILD_WITH_URDF_SUPPORT)
# Link directly against console_bridge since we bind some enums and call
# console_bridge::setLogLevel function.
target_link_libraries(${PYTHON_LIB_NAME} PUBLIC console_bridge::console_bridge)
modernize_target_link_libraries(
${PYTHON_LIB_NAME}
SCOPE PUBLIC
TARGETS console_bridge::console_bridge
LIBRARIES ${console_bridge_LIBRARIES}
INCLUDE_DIRS ${console_bridge_INCLUDE_DIRS})
endif()
if(BUILD_WITH_HPP_FCL_SUPPORT)
target_compile_definitions(${PYTHON_LIB_NAME}
Expand Down

0 comments on commit cfb3ddf

Please sign in to comment.