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 0ef638275 fix(build): fix undefined reference to dsn::task_code::write 
while building by gcc on ubuntu2004
0ef638275 is described below

commit 0ef63827562d200140197612447621b1c2deb0c2
Author: Dan Wang <[email protected]>
AuthorDate: Mon Oct 24 11:02:27 2022 +0800

    fix(build): fix undefined reference to dsn::task_code::write while building 
by gcc on ubuntu2004
---
 src/base/CMakeLists.txt    | 2 --
 src/geo/lib/CMakeLists.txt | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/base/CMakeLists.txt b/src/base/CMakeLists.txt
index a804c928a..7c117ef4f 100644
--- a/src/base/CMakeLists.txt
+++ b/src/base/CMakeLists.txt
@@ -28,8 +28,6 @@ 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)
diff --git a/src/geo/lib/CMakeLists.txt b/src/geo/lib/CMakeLists.txt
index 094bfb352..3649037e3 100644
--- a/src/geo/lib/CMakeLists.txt
+++ b/src/geo/lib/CMakeLists.txt
@@ -36,4 +36,4 @@ set(MY_BOOST_LIBS Boost::system Boost::filesystem)
 
 dsn_add_static_library()
 
-target_link_libraries(${MY_PROJ_NAME} PRIVATE pegasus_base) # TODO(huangwei5): 
dsn_add_static_library doesnt link libs, need fix
+target_link_libraries(${MY_PROJ_NAME} PRIVATE pegasus_base dsn_runtime) # 
TODO(huangwei5): dsn_add_static_library doesnt link libs, need fix


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

Reply via email to