Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: allow compilation on Fedora-like systems finding Eigen3 #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meyerj
Copy link
Member

@meyerj meyerj commented Dec 16, 2021

For some reason CentOS installs a custom CMake module FindEigen3.cmake at /usr/share/cmake/Modules which does not set EIGEN3_INCLUDE_DIRS and take precedence over /usr/share/cmake/Eigen3Config.cmake:
https://git.centos.org/rpms/eigen3/c/f12352f2c337bd9af314b28ca69d330f5de44b69?branch=c8

This patch changes the way in which Eigen3 is found according to the ROS Jade migration guide:
http://wiki.ros.org/jade/Migration#Eigen_CMake_Module_in_cmake_modules

The important part is

else()
  set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})

Fedora-like systems struggle to find eigen library properly by filling
only EIGEN3_INCLUDE_DIR. This patch allows in such cases to be able
to compile the package.

This patch changes the way in which Eigen3 is found according to the
ROS Jade migration document:
http://wiki.ros.org/jade/Migration#Eigen_CMake_Module_in_cmake_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants