Skip to content

Commit 9bbf0c1

Browse files
committed
debug
1 parent 621778b commit 9bbf0c1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

backend/cpp/llama/CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ add_custom_command(
6767
"${hw_proto}"
6868
DEPENDS "${hw_proto}")
6969

70+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
71+
7072
# hw_grpc_proto
7173
add_library(hw_grpc_proto
7274
${hw_grpc_srcs}
@@ -75,11 +77,18 @@ add_library(hw_grpc_proto
7577
${hw_proto_hdrs} )
7678

7779
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
8085
gRPC::${_REFLECTION}
8186
gRPC::${_GRPC_GRPCPP}
82-
protobuf::${_PROTOBUF_LIBPROTOBUF})
87+
protobuf::${_PROTOBUF_LIBPROTOBUF}
88+
absl::flags
89+
absl::flags_parse
90+
${CMAKE_THREAD_LIBS_INIT}
91+
)
8392
target_compile_features(${TARGET} PRIVATE cxx_std_11)
8493
if(TARGET BUILD_INFO)
8594
add_dependencies(${TARGET} BUILD_INFO)

0 commit comments

Comments
 (0)