From d70afff273df67d0eb029ea16fa68a84faa9c200 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 20 七月 2021 19:26:50 +0800
Subject: [PATCH] 调整Request C.BHFree的位置
---
proto/cpp/CMakeLists.txt | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/proto/cpp/CMakeLists.txt b/proto/cpp/CMakeLists.txt
index 1399af0..aa312d8 100644
--- a/proto/cpp/CMakeLists.txt
+++ b/proto/cpp/CMakeLists.txt
@@ -1,14 +1,11 @@
cmake_minimum_required(VERSION 3.0)
set (Target "bhome_msg")
-set (TargetStatic "bhome_msg_static")
project(${Target})
find_package(Protobuf REQUIRED)
file(GLOB proto_files ../source/*.proto)
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${proto_files})
-add_library(${Target} SHARED ${PROTO_SRCS})
-add_library(${TargetStatic} STATIC ${PROTO_SRCS})
-target_link_libraries(${Target} protobuf-lite)
-target_link_libraries(${TargetStatic} libprotobuf-lite.a)
+add_library(${Target} STATIC ${PROTO_SRCS})
+target_link_libraries(${Target} libprotobuf-lite.a)
\ No newline at end of file
--
Gitblit v1.8.0