[go: up one dir, main page]

cmake: pkgconfig directory choice ignored if it doesn't exist at configure time

Submitted by John Hein

Assigned to Nobody

Link to original bugzilla bug (#711)
Version: 3.2

Description

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.

Depends on

#1100 (closed)

Edited by Eigen Bugzilla