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

build: Fix installation paths #1657

Merged
merged 1 commit into from
May 1, 2020
Merged

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Apr 30, 2020

It is not generally true that CMAKE_INSTALL_<dir> variables are relative paths:

https://github.com/jtojnar/cmake-snips#concatenating-paths-when-building-pkg-config-files

This lead to includedir=/nix/store/9axh4pacy7l4s7ii9j0ij54nmdslj7yy-fmt-6.2.0-dev//nix/store/9axh4pacy7l4s7ii9j0ij54nmdslj7yy-fmt-6.2.0-dev/include.

I agree that my contributions are licensed under the {fmt} license, and agree to future changes to the licensing.

@jtojnar jtojnar mentioned this pull request Apr 30, 2020
10 tasks
Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Looks great, just two comments inline.

CMakeLists.txt Show resolved Hide resolved
support/cmake/JoinPaths.cmake Show resolved Hide resolved
It is not generally true that `CMAKE_INSTALL_<dir>` variables are relative paths:

https://github.com/jtojnar/cmake-snips#concatenating-paths-when-building-pkg-config-files
@vitaut vitaut merged commit 78f041a into fmtlib:master May 1, 2020
@vitaut
Copy link
Contributor

vitaut commented May 1, 2020

Thank you!

@jtojnar jtojnar deleted the pkg-config-fix branch May 1, 2020 17:55
justsmth pushed a commit to aws/aws-lc that referenced this pull request Oct 15, 2024
### Description of changes: 

Currently the pkgconfig files are broken when aws-lc is built with Nix. 

See
https://github.com/jtojnar/cmake-snips?tab=readme-ov-file#concatenating-paths-when-building-pkg-config-files,
and the PR made to libfmt fmtlib/fmt#1657

### Call-outs:

I'm not sure if bumping the minimum required CMake version is preferred.
The alternative would be to add
https://github.com/jtojnar/cmake-snips/blob/master/CMakeScripts/JoinPaths.cmake
to the `cmake/` directory in the repository. However, most linux
distributions have at least CMake 3.20, if not 3.25 so I don't see why
this would be a problem.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
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 this pull request may close these issues.

2 participants