This is an automated email from the ASF dual-hosted git repository.

wangdan pushed a commit to branch fix-undefined-ref-to-task_code-write
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to 
refs/heads/fix-undefined-ref-to-task_code-write by this push:
     new 9be495e59 fix(build): fix undefined reference to dsn::task_code::write 
while building by gcc on ubuntu2004
9be495e59 is described below

commit 9be495e5902b71b176e47c440a8b0acade569d77
Author: Dan Wang <[email protected]>
AuthorDate: Mon Oct 24 01:41:50 2022 +0800

    fix(build): fix undefined reference to dsn::task_code::write while building 
by gcc on ubuntu2004
---
 src/base/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/base/CMakeLists.txt b/src/base/CMakeLists.txt
index caeb5969f..a804c928a 100644
--- a/src/base/CMakeLists.txt
+++ b/src/base/CMakeLists.txt
@@ -28,7 +28,9 @@ set(MY_SRC_SEARCH_MODE "GLOB")
 
 set(MY_PROJ_SRC "")
 
+set(MY_PROJ_LIBS dsn_runtime)
+
 dsn_add_static_library()
 
-target_link_libraries(pegasus_base PUBLIC RocksDB::rocksdb sasl2 gssapi_krb5 
krb5 dsn_replication_common dsn_runtime)
+target_link_libraries(pegasus_base PUBLIC RocksDB::rocksdb sasl2 gssapi_krb5 
krb5 dsn_replication_common)
 target_include_directories(pegasus_base PUBLIC 
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to