This is an automated email from the ASF dual-hosted git repository.
dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git
The following commit(s) were added to refs/heads/master by this push:
new 689d289 fix(build): close code coverage link as default (#234)
689d289 is described below
commit 689d2895a421f783bfba3804a6cde7f1b509780d
Author: dinglei <[email protected]>
AuthorDate: Fri Jan 17 16:05:57 2020 +0800
fix(build): close code coverage link as default (#234)
---
CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c70b7e7..3a56471 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -191,12 +191,12 @@ ELSE ()
list(APPEND deplibs rt)
endif ()
list(APPEND deplibs z)
- # Code Coverage Configuration
- add_library(coverage_config INTERFACE)
option(CODE_COVERAGE "Enable coverage reporting" OFF)
if (CODE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
# Add required flags (GCC & LLVM/Clang)
+ # Code Coverage Configuration
+ add_library(coverage_config INTERFACE)
target_compile_options(coverage_config INTERFACE
-O0 # no optimization
-g # generate debug info