-
Notifications
You must be signed in to change notification settings - Fork 199
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
CMakeLists.txt: Properly handle cpu flags #533
base: master
Are you sure you want to change the base?
Conversation
Upstream PR is here: soedinglab/MMseqs2#533 See also: #1143 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <[email protected]>
I thought that I don't really like it a lot that with this change BTW Debian uses |
Yes we should probably have a
Well yes, but if the user sets nonsensical flags it is not that big of a problem if the outcome is (expected) nonsense. Is there an easy way we can avoid this?
In Gentoo this is controlled by |
30829d7
to
cde8f87
Compare
gentoo/sci#1143 Signed-off-by: Andrew Ammerlaan <[email protected]>
cde8f87
to
d1c4fb7
Compare
How about now? This should fix the problem but still keep the nonsensical combinations mutually exclusive. |
At least on g++ |
Having multiple cpu flags enabled is valid, so we should use if instead of elsif. Otherwise only the first
HAVE_*
variable is actually respected.e.g. before this change we get this on Gentoo:
i.e. only avx2 is respected, sse2/4 is ignored.
After change we get:
gentoo/sci#1143
Signed-off-by: Andrew Ammerlaan [email protected]