Commit a2d20b52 authored by Heiko Becker's avatar Heiko Becker
Browse files

Use Config mode for finding Eigen3

In [1] the build system was changed to use Eigen3's imported targets
provided upstream. These are only available with the cmake config
files, not the FindEigen3 module (also upstream). With the basic
signature of find_package() it searches in Module mode first, finding
Eigen3 via FindEigen3.cmake and erroring out afterwards because
Eigen3::Eigen is an unknown target.
Forcing find_package to use the Config mode fixes that.

[1] 7f3d443c
parent b312e7db
Pipeline #206009 passed with stage
in 2 minutes and 57 seconds
......@@ -34,7 +34,7 @@ ecm_setup_version(8.0.0 VARIABLE_PREFIX ANALITZA
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/analitza_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/Analitza5ConfigVersion.cmake")
find_package(Eigen3) # find and setup Eigen3 if available
find_package(Eigen3 CONFIG) # find and setup Eigen3 if available
set(HAVE_EIGEN3 ${EIGEN3_FOUND})
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment