Question
CMake Can't find Eigen3
I have copied FindEigen3.cmake into my source directory.
I then added:
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})
to my CMakeLists.txt to tell CMake to use this .cmake file.
Then in my CMakeLists.txt I do:
FIND_PACKAGE(Eigen3)
I have the environent variable EIGEN3_INCLUDE_DIR set to /home/doriad/src/eigen
When I run CMake, I get:
-- Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) (Required is at least version "2.91.0")
This is a fresh clone from Mercurial, so the version should be at least 3.
Any suggestions?
If I set the module path INCORRECTLY, I get some clues:
Adjust CMAKE_MODULE_PATH to find FindEigen3.cmake or set Eigen3_DIR to the
directory containing a CMake configuration file for Eigen3. The file will
have one of the following names:
Eigen3Config.cmake
eigen3-config.cmake
However, I didn't find either of those files in either the source dir or build dir of Eigen3. I tried to set Eigen3_DIR=/home/doriad/src/eigen, but that didn't work either.
Thoughts?
Thanks,
David