Skip to content

Commit

Permalink
Also add to fuse_publishers
Browse files Browse the repository at this point in the history
While Eigen isn't included directly here, it is included when we include some headers from fuse_core.
  • Loading branch information
ayrton04 authored Aug 27, 2024
1 parent 5bf6850 commit f0847b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fuse_publishers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0847b9

Please sign in to comment.