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

haonan pushed a commit to branch code_coverage_v2
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/code_coverage_v2 by this push:
     new 4c855787 try
4c855787 is described below

commit 4c85578726ac976ee6034e3db2fc9f7c06bdb83c
Author: HTHou <[email protected]>
AuthorDate: Thu Aug 1 12:23:39 2024 +0800

    try
---
 cpp/src/CMakeLists.txt | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt
index 0d7825a1..ec07d19a 100644
--- a/cpp/src/CMakeLists.txt
+++ b/cpp/src/CMakeLists.txt
@@ -28,14 +28,13 @@ add_subdirectory(utils)
 add_subdirectory(writer)
 
 add_library(tsfile SHARED)
-target_link_libraries(tsfile common_obj compress_obj cwrapper_obj file_obj 
read_obj write_obj)
-#if (${COV_ENABLED})
-#    message("Enable code cov...")
-#    target_link_libraries(tsfile common_obj compress_obj cwrapper_obj 
file_obj read_obj write_obj 
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin
 -lclang_rt.profile_osx)
-#else()
-#    message("Disable code cov...")
-#    target_link_libraries(tsfile common_obj compress_obj cwrapper_obj 
file_obj read_obj write_obj)
-#endif()
+if (${COV_ENABLED})
+    message("Enable code cov...")
+    target_link_libraries(tsfile common_obj compress_obj cwrapper_obj file_obj 
read_obj write_obj -lgcov)
+else()
+    message("Disable code cov...")
+    target_link_libraries(tsfile common_obj compress_obj cwrapper_obj file_obj 
read_obj write_obj)
+endif()
 
 set(LIBTSFILE_PROJECT_VERSION 1.0)
 set(LIBTSFILE_SO_VERSION 1.0)

Reply via email to