Typically cross-compilation does not work well with pkg-config when one uses a custom rootfs. Therefore, I suggest that by default find_package(Eigen3 QUIET) is used, and if that does not work fall back to pkg-config. This approach works with cross-compilation for Ubuntu 16.04 and 18.04.
Typically cross-compilation does not work well with pkg-config when one uses a custom rootfs. Therefore, I suggest that by default
find_package(Eigen3 QUIET)
is used, and if that does not work fall back to pkg-config. This approach works with cross-compilation for Ubuntu 16.04 and 18.04.