If I want to install to a different prefix than the default for a particular eigen package version, I would like the eigen3.pc file to be installed under that prefix as well. So I tried specifying PKG_CONFIG_LIBDIR when I ran cmake, but it the directory doesn't exist yet, the logic in CMakeLists.txt falls back on a different location that doesn't match where .pc files go on my platform (not in <prefix>/share nor <prefix>/lib). pkg-config can look in alternate locations specified at run time, so I don't think the eigen package should enforce that the directory must exist at configure time. If I specifically specify a particular directory, I'd like the package to just use that. One example of this is for cross installs. I'm thinking that if PKG_CONFIG_LIBDIR is set in the environment, CMakeLists.txt should just use it without trying to check its existence. I don't speak cmake syntax very well yet, so I don't have a patch at the moment.
I think that this one is solved by bug 1100.
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/711.