summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwchang kim <wchang.kim@samsung.com>2024-08-14 17:16:17 +0900
committerwchang kim <wchang.kim@samsung.com>2024-08-14 17:16:17 +0900
commita63824f48aa3ffcae6bc93d0361b8e48982049b9 (patch)
tree34bf4451320b7b1e6474fe8a305908a7c29e8150
parentdb7005965baf04d7f2eb10248127b7121048bf7e (diff)
downloadncnn-sandbox/playchang/riscv64.tar.gz
ncnn-sandbox/playchang/riscv64.tar.bz2
ncnn-sandbox/playchang/riscv64.zip
Fixed the build error for gcc 9sandbox/playchang/riscv64
Change-Id: I88709ae85631f2e427dec14b2d0b87399b515f63
-rw-r--r--src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 30de1b2..dc98799 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -573,7 +573,10 @@ if(NCNN_TARGET_ARCH STREQUAL "arm" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
target_compile_options(ncnn PRIVATE -mno-outline-atomics)
endif()
- target_link_libraries(ncnn PRIVATE mvec)
+ find_library(MVEC_LIB "mvec")
+ if (MVEC_LIB)
+ target_link_libraries(ncnn PRIVATE mvec)
+ endif()
endif()
if(NCNN_TARGET_ARCH STREQUAL "mips")