The FindEigen3.cmake CMake module sets EIGEN3_INCLUDE_DIR instead of EIGEN3_INCLUDE_DIRS. At the moment, Ubuntu only includes the Eigen3Config.cmake config, while Fedora includes both files. CMake appears to give precedence to the module over the config, so the config never gets processed.
Alternatively, we could pass NO_MODULE to the find_package call, but this would fail on systems that ONLY have the module, though I'm not aware of any such distributions.
The
FindEigen3.cmake
CMake module setsEIGEN3_INCLUDE_DIR
instead ofEIGEN3_INCLUDE_DIRS
. At the moment, Ubuntu only includes theEigen3Config.cmake
config, while Fedora includes both files. CMake appears to give precedence to the module over the config, so the config never gets processed.Alternatively, we could pass
NO_MODULE
to thefind_package
call, but this would fail on systems that ONLY have the module, though I'm not aware of any such distributions.A similar change was applied to rviz2.
In the current code, even when
Eigen3Config.cmake
is used andEIGEN3_INCLUDE_DIR
is referenced, a build warning comes out of catkin:This change should also resolve that warning.