]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: only display the result of checking nasm once
authorKefu Chai <kchai@redhat.com>
Sun, 3 Jan 2021 17:15:54 +0000 (01:15 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 3 Jan 2021 17:34:46 +0000 (01:34 +0800)
commitd72c9205dc0923ea4b5b1be5d389c56fe7d23a1d
treea3732d47bc3ed65bc95d069460bdd2593ba347cf
parentde784397758cca4ba4de4d1f7a3cf5986a7e2136
cmake: only display the result of checking nasm once

if nasm is able to emit AVX512 instructions, we can assume that it's
able to generate AVX2 instructions as well. so no need to print "Found
nasm" multiple times.

and by chaining mutual exclusive branches with "elseif", we can have
better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/CheckNasm.cmake