diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-07-18 17:23:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 17:23:37 (GMT) |
commit | f6997681335f0b5fe2e8904f9108a71c5200fb2d (patch) | |
tree | edc5aabdcae1035ce6e888bde550e15b1ad2e878 /config | |
parent | 7f9a5f0b6e58e9c04a18ea83ff0400f95294c6ac (diff) | |
download | hdf5-f6997681335f0b5fe2e8904f9108a71c5200fb2d.zip hdf5-f6997681335f0b5fe2e8904f9108a71c5200fb2d.tar.gz hdf5-f6997681335f0b5fe2e8904f9108a71c5200fb2d.tar.bz2 |
1.12 eliminate unnecessary errors in the error stack (#1880)
* Eliminate unnecessary error output
* Fix merge typo
* fix format
* Fix object address to tokens
* Fix conflict
Diffstat (limited to 'config')
-rw-r--r-- | config/sanitizer/code-coverage.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/sanitizer/code-coverage.cmake b/config/sanitizer/code-coverage.cmake index 3a99024..e71bfd7 100644 --- a/config/sanitizer/code-coverage.cmake +++ b/config/sanitizer/code-coverage.cmake @@ -214,7 +214,7 @@ function(target_code_coverage TARGET_NAME) # Add code coverage instrumentation to the target's linker command if(CMAKE_C_COMPILER_ID MATCHES "[Cc]lang" OR CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang") target_compile_options(${TARGET_NAME} PRIVATE -fprofile-instr-generate - -fcoverage-mapping --coverage) + -fcoverage-mapping) set_property( TARGET ${TARGET_NAME} APPEND_STRING @@ -225,7 +225,7 @@ function(target_code_coverage TARGET_NAME) PROPERTY LINK_FLAGS "-fcoverage-mapping ") elseif(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") target_compile_options(${TARGET_NAME} PRIVATE -fprofile-arcs - -ftest-coverage --coverage) + -ftest-coverage) target_link_libraries(${TARGET_NAME} PRIVATE gcov) endif() @@ -413,10 +413,10 @@ endfunction() # use `target_code_coverage`. function(add_code_coverage) if(CMAKE_C_COMPILER_ID MATCHES "[Cc]lang" OR CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang") - add_compile_options(-fprofile-instr-generate -fcoverage-mapping --coverage) - add_link_options(-fprofile-instr-generate -fcoverage-mapping --coverage) + add_compile_options(-fprofile-instr-generate -fcoverage-mapping) + add_link_options(-fprofile-instr-generate -fcoverage-mapping) elseif(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") - add_compile_options(-fprofile-arcs -ftest-coverage --coverage) + add_compile_options(-fprofile-arcs -ftest-coverage) link_libraries(gcov) endif() endfunction() |