From f0847b990a0c348d780a8cb9bdf51f2c85392d53 Mon Sep 17 00:00:00 2001 From: Tom Moore Date: Tue, 27 Aug 2024 14:06:47 +0100 Subject: [PATCH] Also add to fuse_publishers While Eigen isn't included directly here, it is included when we include some headers from fuse_core. --- fuse_publishers/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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