File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ add_custom_command(
67
67
"${hw_proto} "
68
68
DEPENDS "${hw_proto} " )
69
69
70
+ set (CMAKE_POSITION_INDEPENDENT_CODE ON )
71
+
70
72
# hw_grpc_proto
71
73
add_library (hw_grpc_proto
72
74
${hw_grpc_srcs}
@@ -75,11 +77,18 @@ add_library(hw_grpc_proto
75
77
${hw_proto_hdrs} )
76
78
77
79
add_executable (${TARGET} grpc-server.cpp utils.hpp json.hpp )
78
- target_link_libraries (${TARGET} PRIVATE common llama myclip ${CMAKE_THREAD_LIBS_INIT} absl::flags hw_grpc_proto
79
- absl::flags_parse
80
+ target_link_libraries (${TARGET} PRIVATE
81
+ common
82
+ llama
83
+ myclip
84
+ hw_grpc_proto
80
85
gRPC::${_REFLECTION}
81
86
gRPC::${_GRPC_GRPCPP}
82
- protobuf::${_PROTOBUF_LIBPROTOBUF} )
87
+ protobuf::${_PROTOBUF_LIBPROTOBUF}
88
+ absl::flags
89
+ absl::flags_parse
90
+ ${CMAKE_THREAD_LIBS_INIT}
91
+ )
83
92
target_compile_features (${TARGET} PRIVATE cxx_std_11 )
84
93
if (TARGET BUILD_INFO )
85
94
add_dependencies (${TARGET} BUILD_INFO )
You can’t perform that action at this time.
0 commit comments