This is an automated email from the ASF dual-hosted git repository. jackietien pushed a commit to branch iotdb in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 15ed6590f7289245af2d5b431e67066fe27b398a 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)
