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

Allow building under longer paths #44

Merged
merged 1 commit into from
Dec 27, 2024
Merged

Allow building under longer paths #44

merged 1 commit into from
Dec 27, 2024

Conversation

jonhoo
Copy link
Owner

@jonhoo jonhoo commented Dec 27, 2024

It turns out that #41 was insufficient since cmake will forcibly set CMAKE_INSTALL_PREFIX to the output directory (which is under the target directory) if it isn't already set1. So, we need to explicitly set a short dummy value.

This should hopefully actually fix docs.rs builds.

The version bump to ibverbs (non-sys) is just to force docs.rs to attempt re-generation of the docs.

It turns out that #41 was insufficient since `cmake` will forcibly _set_
`CMAKE_INSTALL_PREFIX` to the output directory (which is under the
target directory) if it isn't already set[1]. So, we need to explicitly
set a short dummy value.

This should hopefully _actually_ fix docs.rs builds.

The version bump to ibverbs (non-sys) is just to force docs.rs to
attempt re-generation of the docs.

[1]: https://github.com/rust-lang/cmake-rs/blob/94da9de2ea79ab6cad572e908864a160cf4847a9/src/lib.rs#L699-L703
@jonhoo jonhoo merged commit 122f5d3 into main Dec 27, 2024
13 checks passed
@jonhoo jonhoo deleted the more-workarounds branch December 27, 2024 19:06
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.

1 participant