From bed1b32974fa76044c66162a671e023c966bc73c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 9 Apr 2021 12:14:23 +0800 Subject: [PATCH] cmake: introduce WITH_EC_ISA_PLUGIN instead of checking "HAVE_NASM_X64_AVX2 OR HAVE_ARMV8_SIMD" everywhere, use a single cached variable of WITH_EC_ISA_PLUGIN. so it's more consistent when checking the availability of ec_isa plugin. Signed-off-by: Kefu Chai --- src/common/options.cc | 2 +- src/erasure-code/CMakeLists.txt | 4 ++++ src/include/config-h.in.cmake | 7 ++----- src/test/erasure-code/CMakeLists.txt | 4 ++-- src/test/erasure-code/TestErasureCodePluginClay.cc | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 8d6175d41a2..15911cbe820 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2753,7 +2753,7 @@ std::vector