Hello,
I have a question regarding building preCICE from source.
Following the instructions on the preCICE installation page, I prepared all required dependencies such as Eigen and Boost:
When running CMake to build preCICE, I encounter the following error:
CMake Error at CMakeLists.txt:238 (find_package):
Could not find a package configuration file provided by "Eigen3" (requested
version 3.4) with any of the following names:
Eigen3Config.cmake
eigen3-config.cmake
Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
"Eigen3_DIR" to a directory containing one of the above files. If "Eigen3"
provides a separate development package or SDK, be sure it has been
installed.
However, when I inspect the Eigen 3.4.0 source tree, I cannot find an Eigen3Config.cmake file under the cmake/ directory (or elsewhere in the source distribution).
Could you please let me know which directory should be added to CMAKE_PREFIX_PATH, or how Eigen3_DIR should be set in this case?
One additional observation is that this issue only occurs with preCICE v3.3.0 and later. I can build preCICE v3.2.0 successfully on the same environment, and Eigen3 is detected correctly without any additional configuration.
My environment
- preCICE >= v3.3.0
- Rocky Linux8.6
- Installation method is CMake
- Dependency are Boost 1.78.0 and Eigen-3.4.0
Thank you for your help.
Best regards,