This is an automated email from the ASF dual-hosted git repository. guangmingchen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push: new 2447f185 [#2913] fix link error if with glog (#2914) 2447f185 is described below commit 2447f185ae5bb9324d0ac7bf60340db5c2a14b9c Author: Allen <ivan_al...@163.com> AuthorDate: Thu Mar 20 21:31:55 2025 +0800 [#2913] fix link error if with glog (#2914) Signed-off-by: allen <al...@qq.com> Co-authored-by: allen <al...@qq.com> --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30076bf2..19b92ba5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -314,8 +314,8 @@ endif() set(BRPC_PRIVATE_LIBS "-lgflags -lprotobuf -lleveldb -lprotoc -lssl -lcrypto -ldl -lz") if(WITH_GLOG) - set(DYNAMIC_LIB ${DYNAMIC_LIB} ${GLOG_LIB}) - set(BRPC_PRIVATE_LIBS "${BRPC_PRIVATE_LIBS} -lglog") + set(DYNAMIC_LIB ${GLOG_LIB} ${DYNAMIC_LIB}) + set(BRPC_PRIVATE_LIBS "-lglog ${BRPC_PRIVATE_LIBS}") endif() if(WITH_SNAPPY) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org