From b60f170b3d6239d54c0328f53403aba6f22cf1cf Mon Sep 17 00:00:00 2001
From: liuxiaolong <basic@aios.baisc>
Date: 星期二, 07 六月 2022 14:40:17 +0800
Subject: [PATCH] 完善arm64交叉编译
---
proto/cpp/CMakeLists.txt | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/proto/cpp/CMakeLists.txt b/proto/cpp/CMakeLists.txt
index 6acc776..d8a2a98 100644
--- a/proto/cpp/CMakeLists.txt
+++ b/proto/cpp/CMakeLists.txt
@@ -21,6 +21,10 @@
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})
@@ -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