This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new 8f17b99c Fix c++ code coverage didn't show cc files (#193)
8f17b99c is described below
commit 8f17b99cf5e030de78f7bef99807a5ed30e8bef1
Author: Haonan <[email protected]>
AuthorDate: Thu Aug 1 23:20:10 2024 +0800
Fix c++ code coverage didn't show cc files (#193)
---
cpp/src/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt
index ec07d19a..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)