Hello,
My question might be very basic. I am trying to install on HPC system and installed all the dependencies. While doing make I always get an error for eigen3 (Picture attached). Is there a way to make the installation look for another address instead of /homes/include/eigen3.
Thanks!
Hi Sweetu,
you can tell CMake where your Eigen3 installation is located by using
cmake -DCMAKE_PREFIX_PATH=<path/to/your/eigen3>
The Eigen3 installation should then contain their own “FindEigen3.cmake” script which sets up everything correctly.
Cheers,
Simon
Hello,
Thanks for your reply. I was already using that:
cmake -DCMAKE_INSTALL_PREFIX=…/Install -DBUILD_ALL_MODULES=ON -DCMAKE_PREFIX_PATH="/homes/sanchitsharma/LCIO/Install;/homes/sanchitsharma/eigen3" …/source
Still there was this error.
Anyways, I will look into this.
Thanks!
Hi Sanchit,
that’s odd. Are you sure the version of Eigen3 you are using provides a CMake module? If I remember correctly this was not always the case. Check for the existence of
path/to/eigen3/share/eigen3/cmake/UseEigen3.cmake
Cheers,
Simon