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

Only prepend $prefix for relative paths #389

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

fliiiix
Copy link
Contributor

@fliiiix fliiiix commented Nov 15, 2024

In cases where CMAKE_INSTALL_LIBDIR is already
an absolute path adding a $prefix will be incorrect.

See also issue on nix pkgs:
NixOS/nixpkgs#144170
And current workaround:
https://github.com/NixOS/nixpkgs/blob/7eee17a8a5868ecf596bbb8c8beb527253ea8f4d/pkgs/development/libraries/magic-enum/default.nix#L21

This should be fully backwards compatible for people that want to have it relocatable.

@Neargye Neargye added this to the v0.9.8 milestone Nov 16, 2024
@fliiiix
Copy link
Contributor Author

fliiiix commented Nov 16, 2024

Hm seems the installation test is not happy with this change 😿

In cases where CMAKE_INSTALL_LIBDIR is already
an absolut path adding a $prefix will be incorrect.

See also issue on nix pkgs:
NixOS/nixpkgs#144170
And current workaround:
https://github.com/NixOS/nixpkgs/blob/7eee17a8a5868ecf596bbb8c8beb527253ea8f4d/pkgs/development/libraries/magic-enum/default.nix#L21
@fliiiix fliiiix force-pushed the bugfix/absolut-path-for-pkg-config branch from 94febac to f042b8e Compare November 16, 2024 16:59
@fliiiix
Copy link
Contributor Author

fliiiix commented Nov 16, 2024

Not me completely forgetting how bools work and what i want to do 🙈

@Neargye
Copy link
Owner

Neargye commented Nov 18, 2024

Now all looks good, thanks!

@Neargye Neargye merged commit 715b442 into Neargye:master Nov 18, 2024
19 checks passed
@fliiiix fliiiix deleted the bugfix/absolut-path-for-pkg-config branch November 18, 2024 11:35
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