From bab131604fc9e44c50df329d4e2076fe8012c505 Mon Sep 17 00:00:00 2001 From: Gorachya <38173958+Gorachya@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:56:47 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 113509a1..07743959 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -267,6 +267,12 @@ if (ENABLE_SM2_Z256_ARMV8) list(APPEND src src/sm2_z256_armv8.S) endif() +option(ENABLE_SM2_NEON "Enable SM2 NEON intrinsics" OFF) +if (ENABLE_SM2_NEON) + message(STATUS "ENABLE_SM2_NEON is ON") + add_definitions(-DENABLE_SM2_NEON) +endif() + option(ENABLE_SM9_Z256_ARMV8 "Enable SM9_Z256 ARMv8 assembly" OFF) if (ENABLE_SM9_Z256_ARMV8) message(STATUS "ENABLE_SM9_Z256_ARMV8 is ON")