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

Fix issue with XXHASH_BUILD_XXHSUM cmake setting #468

Merged
merged 1 commit into from
Oct 26, 2020
Merged

Fix issue with XXHASH_BUILD_XXHSUM cmake setting #468

merged 1 commit into from
Oct 26, 2020

Conversation

devpow112
Copy link
Contributor

@devpow112 devpow112 commented Oct 26, 2020

Using set(... CACHE ...) causes XXHASH_BUILD_XXHSUM to be stuck ON even when doing a set(XXHASH_BUILD_XXHSUM OFF) for some cmake version/generators. Switching to option(...) fixes this issue and allows you to properly turn off the building of xxhsum in all situations.

Currently using set(XXHASH_BUILD_XXHSUM OFF CACHE BOOL "" FORCE) before including xxhash into another cmake project gets around the issue but is non-obvious.

Using `set(... CACHE ...)` causes `XXHASH_BUILD_XXHSUM` to be stuck `ON` even
when doing a `set(XXHASH_BUILD_XXHSUM OFF)` for some cmake version/generators.
Switching to `option(...)` fixes this issue and allows you to properly turn off
the building of xxhsum in all situations.
@devpow112
Copy link
Contributor Author

Thanks @Cyan4973 for the quick review 👍

@Cyan4973 Cyan4973 merged commit 35d3948 into Cyan4973:dev Oct 26, 2020
@devpow112 devpow112 deleted the patch-1 branch October 26, 2020 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants