Eigen3Config.cmake does not register correct file in CMake User Package registry

Submitted by Dominic Kempf

Assigned to Nobody

Link to original bugzilla bug (#1386)
Version: 3.3 (current stable)
Operating system: Linux

Description

Eigen3 makes use of the cmake user package registry through the cmake command "export(PACKAGE ...)". This command registers the Eigen3Config.cmake from the build tree. However, the relative paths currently used in this config file are designed to be correct within the installation tree structure. This results in CMake finding Eigen3 form downstream packages, but use incorrect include paths.

Note, that the behaviour was explicitly changed to relative paths in #1347 (closed).

Edited by Antonio Sánchez