I followed the instructions here for including Eigen in my CMake project: https://eigen.tuxfamily.org/dox/TopicCMakeGuide.html
However, I do get the following cmake error:
Could not find a configuration file for package "Eigen3" that is compatible with requested version "3.2". The following configuration files were considered but not accepted:
/usr/lib/cmake/eigen3/Eigen3Config.cmake, version: unknown
What's odd is that it doesn't know the version of Eigen3Config.cmake. Here are the contents of Eigen3Config.cmake:
set ( EIGEN3_FOUND 1 )
set ( EIGEN3_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/UseEigen3.cmake" )
set ( EIGEN3_DEFINITIONS "" )
set ( EIGEN3_INCLUDE_DIR "/usr/include/eigen3" )
set ( EIGEN3_INCLUDE_DIRS "/usr/include/eigen3" )
set ( EIGEN3_ROOT_DIR "/usr" )
set ( EIGEN3_VERSION_STRING "3.2.92" )
set ( EIGEN3_VERSION_MAJOR "3" )
set ( EIGEN3_VERSION_MINOR "2" )
set ( EIGEN3_VERSION_PATCH "92" )
Is there something wrong with this file? I installed eigen using apt, so this file should be correct.