# Revision history [back]

So my workaround for this was to find anywhere where find_package(Eigen3 REQUIRED) is included in CMakeList.txt in the src directory (In each package)

and replace with

find_package(PkgConfig)

pkg_search_module(Eigen3 REQUIRED eigen3)

So my workaround for this was to find anywhere where find_package(Eigen3 REQUIRED) is included in CMakeList.txt in the src directory (In each package)

and replace with

find_package(PkgConfig)

find_package(PkgConfig)
pkg_search_module(Eigen3 REQUIRED eigen3)eigen3)


So my workaround for this was to find anywhere where find_package(Eigen3 REQUIRED) is included in CMakeList.txt in the src directory (In each package)

and replace with

find_package(PkgConfig)
pkg_search_module(Eigen3 REQUIRED eigen3)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) find_package(Eigen3 REQUIRED) include_directories(${EIGEN3_INCLUDE_DIR})


So my workaround for this was to find anywhere where find_package(Eigen3 REQUIRED) is included in CMakeList.txt in the src directory (In each package)

and replace with

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) find_package(Eigen3 REQUIRED) include_directories(${EIGEN3_INCLUDE_DIR})


Second, Find a copy of the FindEigen3.cmake file and copy it to the same place as the CMakeList.txt. I found it in another package.