Skip to content

Commit

Permalink
Fix compilation when using CMake 3.26.1 and pybind11 2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed Apr 2, 2023
1 parent 4d6ff3e commit 4bd2523
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,6 @@ jobs:
mkdir -p /usr/share/librealsense2/presets
sudo apt-get install librealsense2-dev
# Workaround for https://github.com/ami-iit/bipedal-locomotion-framework/issues/636
- name: Cmake 3.25.3 [Ubuntu]
if: startsWith(matrix.os, 'ubuntu')
run: |
curl -sL https://github.com/Kitware/CMake/releases/download/v3.25.3/cmake-3.25.3-linux-x86_64.sh -o cmakeinstall.sh \
&& chmod +x cmakeinstall.sh \
&& sudo ./cmakeinstall.sh --prefix=/usr/local --exclude-subdir \
&& rm cmakeinstall.sh
- name: Cache Source-based Dependencies
id: cache-source-deps
uses: actions/cache@v3
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ All notable changes to this project are documented in this file.
- Return an error if an invalid `KinDynComputations` object is passed to `QPInverseKinematics::build()` (https://github.com/ami-iit/bipedal-locomotion-framework/pull/622)
- Fix `QPTSIF` documentation (https://github.com/ami-iit/bipedal-locomotion-framework/pull/634)
- Fix error messages in `QPTSID` class (https://github.com/ami-iit/bipedal-locomotion-framework/pull/639)
- Fix compilation failure when using CMake 3.26.1 and pybind11 2.4.3 (https://github.com/ami-iit/bipedal-locomotion-framework/pull/643)

## [0.12.0] - 2023-03-07
### Added
Expand Down
9 changes: 9 additions & 0 deletions cmake/BipedalLocomotionFrameworkDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
include(BipedalLocomotionFrameworkFindDependencies)
include(BipedalLocomotionDependencyClassifier)

# Workaround for issue that occurs with CMake 3.26.1 and pybind11 2.4.3
# see https://github.com/ami-iit/bipedal-locomotion-framework/issues/636
# This is done here as it needs to be done before any call (even transitive)
# to find_package(pybind11)
# It can be removed once pybind11 2.4.3 is not supported anymore
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
endif()

################################################################################
########################## Mandatory dependencies ##############################

Expand Down

0 comments on commit 4bd2523

Please sign in to comment.