CMakeLists.txt: Properly handle cpu flags#533
CMakeLists.txt: Properly handle cpu flags#533Nowa-Ammerlaan wants to merge 1 commit intosoedinglab:masterfrom
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]