Skip to content

pkg-config file is broken when CMAKE_INSTALL_LIBDIR is absolute #748

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

Closed
alexshpilkin opened this issue May 19, 2022 · 0 comments · Fixed by #750
Closed

pkg-config file is broken when CMAKE_INSTALL_LIBDIR is absolute #748

alexshpilkin opened this issue May 19, 2022 · 0 comments · Fixed by #750

Comments

@alexshpilkin
Copy link

alexshpilkin commented May 19, 2022

As per title: xsimd.pc.in has

prefix=@CMAKE_INSTALL_PREFIX@
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@

and so can’t handle absolute paths in CMAKE_INSTALL_LIBDIR. This leads to broken .pc files on NixOS in particular.

Identical to xtensor-stack/xtensor#2542. See “Concatenating paths when building pkg-config files” for a thorough discussion of the problem and a suggested fix, or KDE’s extra-cmake-modules for a simpler approach.

serge-sans-paille added a commit that referenced this issue May 20, 2022
xsimd is a header-only library, so libdir is not useful

Fix #748
serge-sans-paille added a commit that referenced this issue May 20, 2022
Accept both relative and absolute libdir and include dir

Fix #748
serge-sans-paille added a commit that referenced this issue May 24, 2022
Accept both relative and absolute libdir and include dir

Fix #748
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

Successfully merging a pull request may close this issue.

1 participant