[Buildroot] [PATCH 1/1] package/eigen: fix package detection with CMake

Julien Olivain juju at cotds.org
Sat Jun 13 16:16:43 UTC 2020

Eigen3 library normally installs a signature file named
"signature_of_eigen3_matrix_library" to help library detection:

This Buildroot package does not use CMake for installing files, as only
the headers are needed in the STAGING_DIR. A generic-package is used
instead with simple copies.

The library also provide a CMake macro that use this file to
detect it:

Without the signature file installed, packages searching for this
library with this method will fail. Other packages usings pkg-config are
not affected by this issue.

This patch install the signature file at the expected path, to fix

Signed-off-by: Julien Olivain <juju at cotds.org>
 package/eigen/eigen.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk
index 5c9e028442..68ffe84cb4 100644
--- a/package/eigen/eigen.mk
+++ b/package/eigen/eigen.mk
@@ -34,6 +34,7 @@ define EIGEN_INSTALL_STAGING_CMDS
 	$(RM) -r $(EIGEN_DEST_DIR)
 	mkdir -p $(EIGEN_DEST_DIR)
 	cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
+	cp -a $(@D)/signature_of_eigen3_matrix_library $(EIGEN_DEST_DIR)
 	$(INSTALL) -D -m 0644 $(@D)/eigen3.pc \

More information about the buildroot mailing list