# Eigen3Config.cmake not found when building preCICE v3.3.0 or later from source

**URL:** https://precice.discourse.group/t/eigen3config-cmake-not-found-when-building-precice-v3-3-0-or-later-from-source/3003
**Category:** Installing preCICE
**Created:** [September 14, 2026, 12:43pm UTC](https://precice.discourse.group/t/eigen3config-cmake-not-found-when-building-precice-v3-3-0-or-later-from-source/3003 "2026-09-14T12:43:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![HiroakiAmakawa](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/hiroakiamakawa/32/3583_2.png) [@HiroakiAmakawa](https://precice.discourse.group/u/HiroakiAmakawa)
#### Post date: [September 14, 2026, 12:43pm UTC](https://precice.discourse.group/t/eigen3config-cmake-not-found-when-building-precice-v3-3-0-or-later-from-source/3003/1 "2026-09-14T12:43:40Z")

</div>

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:

> **[Building from source - Dependencies](https://precice.org/installation-source-dependencies.html)**
>
> This page describes the dependencies used by preCICE, how to install them on various systems and how to build them.

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,

---

<div class="post-metadata">

### Author: ![fsimonis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fsimonis/32/6_2.png) [@fsimonis](https://precice.discourse.group/u/fsimonis)
#### Post date: [September 16, 2026, 7:10am UTC](https://precice.discourse.group/t/eigen3config-cmake-not-found-when-building-precice-v3-3-0-or-later-from-source/3003/2 "2026-09-16T07:10:21Z")

</div>

@HiroakiAmakawa  
Hi,

> [@HiroakiAmakawa](#):
>
> Following the instructions on the preCICE installation page

Ah, we forgot to update the resources. Sorry about this, and thank you very much for reporting!

In preCICE version 3.3.0, we added support for detecting the new version 5.0.0 of Eigen3. The old detection method using the module and the marker in source lead to problems, so we switched to using the CMake config instead.  
This config exists in all installations by system package managers that we could find.

When using Eigen from source, this config needs to be generated from the Eigen3 sources by creating a build directory running CMake inside of it. To make this visible, you then need to set this directory as `Eigen3_DIR` (CMake variable or environment), as stated by the error message from CMake.

```
cd eigen3-sources
mkdir build
cd build
cmake .. # This generates the config in the build directory
export Eigen3_DIR="$(pwd)"

```

---

<div class="post-metadata">

### Author: ![HiroakiAmakawa](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/hiroakiamakawa/32/3583_2.png) [@HiroakiAmakawa](https://precice.discourse.group/u/HiroakiAmakawa)
#### Post date: [September 18, 2026, 2:39am UTC](https://precice.discourse.group/t/eigen3config-cmake-not-found-when-building-precice-v3-3-0-or-later-from-source/3003/3 "2026-09-18T02:39:20Z")

</div>

@fsimonis  
Thank you for your reply.

Following your suggestion, I built Eigen3-5.0.0 and configured the required environment variables ‘Eigen3\_DIR’. This allowed me to successfully build preCICE 3.4.1.

As a final note, it would be helpful if the official documentation could be updated to reflect this procedure as well.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)
#### Post date: [September 21, 2026, 2:40am UTC](https://precice.discourse.group/t/eigen3config-cmake-not-found-when-building-precice-v3-3-0-or-later-from-source/3003/4 "2026-09-21T02:40:11Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
