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
Fix double prefix when building with cmake #723
Conversation
@Cyan4973 ping |
@ilya-fedin, I'm sorry about these annoying errors! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a quick eyeball this change looks correct to me and properly handles the various edge cases under cmake.
I'm trying to understand what was the objective of this PR. The title mentions "Fix double prefix when building with cmake", If that's the case, I would expect it should be possible to create a test case that reproduces this issue. Such test case could then be integrated into CI. Looking at the PR's content, it appears focused on pkg-config generation. Note : I see that one test was failing, but my understanding is that the problem was on the test side, not the PR. We can ignore it. |
Try to build xxHash with the following cmake arguments:
This is valid for cmake but xxHash's build scripts generate pkg-config file in a way it gets |
OK !
which is obviously incorrect, and will lead to duplicated prefix In contrast, after your patch, the content of
It's probably worth making a test from this example. |
Sorry, but I don't have that much interest to create a test. If this is required to get the PR merged, I'd just close it and let someone else to do the work. |
Don't worry, I'm taking care of it (#845). |
ensure proper path after advanced example provided by @ilya-fedin : #723 (comment) note : is expected to fail before integration of #723
No description provided.