diff --git a/fuse_publishers/CMakeLists.txt b/fuse_publishers/CMakeLists.txt index a2f78f010..7a3836365 100644 --- a/fuse_publishers/CMakeLists.txt +++ b/fuse_publishers/CMakeLists.txt @@ -31,6 +31,15 @@ catkin_package( ########### add_compile_options(-Wall -Werror) +# 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() + # fuse_publishers library add_library(${PROJECT_NAME} src/path_2d_publisher.cpp