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

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


The following commit(s) were added to refs/heads/code_coverage_v3 by this push:
     new 370076f9 update
370076f9 is described below

commit 370076f90781dacfecba9d7542d3e2ef692371ea
Author: HTHou <[email protected]>
AuthorDate: Thu Aug 1 22:37:58 2024 +0800

    update
---
 cpp/src/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt
index 7346d8b1..686520a0 100644
--- a/cpp/src/CMakeLists.txt
+++ b/cpp/src/CMakeLists.txt
@@ -18,6 +18,9 @@ under the License.
 ]]
 message("Running in src diectory")
 include(${PROJECT_SOURCE_DIR}/cmake/build_function.cmake)
+if (${COV_ENABLED})
+    add_compile_options(-fprofile-arcs -ftest-coverage)
+endif ()
 add_subdirectory(common)
 add_subdirectory(compress)
 add_subdirectory(cwrapper)
@@ -30,7 +33,6 @@ add_subdirectory(writer)
 add_library(tsfile SHARED)
 if (${COV_ENABLED})
     message("Enable code cov...")
-    add_compile_options(-fprofile-arcs -ftest-coverage)
     target_link_libraries(tsfile common_obj compress_obj cwrapper_obj file_obj 
read_obj write_obj -lgcov)
 else()
     message("Disable code cov...")

Reply via email to