This is an automated email from the ASF dual-hosted git repository.
gehafearless pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new c097a154f fix(build): fix undefined reference to thrift-generated
objects while linking libdsn_client.a (#1847)
c097a154f is described below
commit c097a154f7a79365e5b3bb26babd239d00c935d0
Author: Dan Wang <[email protected]>
AuthorDate: Fri Jan 12 14:58:24 2024 +0800
fix(build): fix undefined reference to thrift-generated objects while
linking libdsn_client.a (#1847)
#1846
The module replication_ddl_client in libdsn_client.a has referenced
thrift-generated objects, which are included in libdsn_replication_common.a
Thus, libdsn_replication_common.a should be linked privately to
libdsn_client.a.
---
src/client/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt
index 21134b3f4..5c3a5d97c 100644
--- a/src/client/CMakeLists.txt
+++ b/src/client/CMakeLists.txt
@@ -40,4 +40,6 @@ set(MY_BINPLACES "")
dsn_add_static_library()
+target_link_libraries(${MY_PROJ_NAME} PRIVATE dsn_replication_common)
+
add_subdirectory(test)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]