Skip to content

Commit

Permalink
Fixing issue with Eigen in Ubuntu Jammy on ARM (#8)
Browse files Browse the repository at this point in the history
* Fixing issue with Eigen in Ubuntu Jammy on ARM
  • Loading branch information
ayrton04 authored Sep 16, 2024
1 parent 5aa5f39 commit ccab496
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ catkin_package(
## Build ##
###########

# On ARM, the use of Eigen 3.4 with g++11 (both the versions in Jammy) causes a warning, which in turn causes
# the build to fail. Details are here: https://gitlab.com/libeigen/eigen/-/issues/2326. We can suppress the warning
# for ARM builds here.
if(Eigen3_VERSION VERSION_EQUAL 3.4 AND
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0 AND
CMAKE_LIBRARY_ARCHITECTURE STREQUAL "aarch64-linux-gnu")
add_compile_options(-Wno-class-memaccess)
endif()

# Header-only package. Nothing to build.

#############
Expand Down

0 comments on commit ccab496

Please sign in to comment.