Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for installations with split dir setups #171

Closed
DerDakon opened this issue Jun 22, 2021 · 2 comments
Closed

Better support for installations with split dir setups #171

DerDakon opened this issue Jun 22, 2021 · 2 comments

Comments

@DerDakon
Copy link

Please use CMAKE_INSTALL_FULL_LIBDIR and friends in pkg-config files like here:

set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")

This will allow a user to specify e.g. an install directory outside $prefix and the .pc file will still work.

I just noticed this in a downstream Gentoo patch.

@cary-ilm
Copy link
Member

Check out #172, I think this is right. It passes my testing, but I'm not sure about the case that tripped you up.

For OpenEXR v2.5 (which predates the separate Imath library/repo), I also submitted this: AcademySoftwareFoundation/openexr#1061

@cary-ilm
Copy link
Member

cary-ilm commented Sep 3, 2021

Closing this now, assuming it's addressed by #172. Let us know if there are outstanding issues.

@cary-ilm cary-ilm closed this as completed Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants