This bugzilla service is closed. All entries have been migrated to
Bug 711 - cmake: pkgconfig directory choice ignored if it doesn't exist at configure time
Summary: cmake: pkgconfig directory choice ignored if it doesn't exist at configure time
Alias: None
Product: Eigen
Classification: Unclassified
Component: General (show other bugs)
Version: 3.2
Hardware: All All
: Normal Unknown
Assignee: Nobody
Depends on: 1100
  Show dependency treegraph
Reported: 2013-12-06 23:24 UTC by John Hein
Modified: 2019-12-04 12:51 UTC (History)
3 users (show)


Description John Hein 2013-12-06 23:24:05 UTC
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.
Comment 1 Gael Guennebaud 2015-12-10 14:52:23 UTC
I think that this one is solved by bug 1100.
Comment 2 Nobody 2019-12-04 12:51:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to'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:

Note You need to log in before you can comment on or make changes to this bug.