From 5445cfe6ed7b164db97b30968a0125fbb0b64fba Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Mon, 1 Apr 2024 18:47:10 +0300 Subject: Build: add libmvec to aarch64 build Change-Id: Ic646b681e7b7ae558763ea64e96af408b18fcbd0 Signed-off-by: Slava Barinov Signed-off-by: Dongkyun Son --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d53bb10..dc98799 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -572,6 +572,11 @@ if(NCNN_TARGET_ARCH STREQUAL "arm" AND CMAKE_SIZEOF_VOID_P EQUAL 8) # disable this feature for fixing linking atomic builtins issue with old ndk target_compile_options(ncnn PRIVATE -mno-outline-atomics) endif() + + find_library(MVEC_LIB "mvec") + if (MVEC_LIB) + target_link_libraries(ncnn PRIVATE mvec) + endif() endif() if(NCNN_TARGET_ARCH STREQUAL "mips") -- cgit v1.2.3