From 16935f4aebffdd1b6580b844391a0aa0f4f3012b Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 22 四月 2024 10:29:12 +0800
Subject: [PATCH] bug fixed

---
 proto/cpp/CMakeLists.txt |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/proto/cpp/CMakeLists.txt b/proto/cpp/CMakeLists.txt
index 4d09144..d8a2a98 100644
--- a/proto/cpp/CMakeLists.txt
+++ b/proto/cpp/CMakeLists.txt
@@ -21,9 +21,13 @@
 
 set(PROTO_PATH ${PROJECT_SOURCE_DIR}/../../protobuf)
 
+if(${ARCH} MATCHES "aarch64")
+        set(PROTO_PATH ${PROJECT_SOURCE_DIR}/../../protobuf-aarch)
+endif()
+
 foreach(file ${proto_files})
         message(${file})
-        message(${MESSAGE_DIR})
+
         get_filename_component(FIL_WE ${file} NAME_WE)
         # message(${FIL_WE})
 
@@ -61,4 +65,4 @@
 
 add_compile_options("-std=c++11")
 add_library(${Target} STATIC ${MESSAGE_SRC})
-target_link_libraries(${Target} ${PROTO_PATH}/lib/libprotobuf-lite.a)
\ No newline at end of file
+target_link_libraries(${Target} ${PROTO_PATH}/lib/libprotobuf-lite.a)

--
Gitblit v1.8.0