diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-11-01 11:31:16 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-11-02 19:49:34 +0100 |
commit | e38eef345e0dd38253b212c9c6590f4c07188d86 (patch) | |
tree | 153d291c16ea873279deede30173399a386d70a3 /cmake/QtInternalTargets.cmake | |
parent | 8842391e5c1c1e751d5d8fca53556d9e8c80196b (diff) |
Replace the specific gcov compile and link options with generic --coverage
Follow up commit fixing review comments.
Amends 42d29441914da263a160d631f56c6d95f85eac70
Task-number: QTBUG-86223
Change-Id: Ia1353fd9855d6811e58ae8b706e932f01fdeec28
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtInternalTargets.cmake')
-rw-r--r-- | cmake/QtInternalTargets.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index 29e3483c71..dc69af9acd 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -369,8 +369,8 @@ endif() function(qt_internal_apply_coverage_flags) if(QT_FEATURE_coverage_gcov) target_compile_options(PlatformCommonInternal INTERFACE - "$<$<CONFIG:Debug>:-fprofile-arcs;-ftest-coverage>") - target_link_options(PlatformCommonInternal INTERFACE "$<$<CONFIG:Debug>:-lgcov;--coverage>") + "$<$<CONFIG:Debug>:--coverage>") + target_link_options(PlatformCommonInternal INTERFACE "$<$<CONFIG:Debug>:--coverage>") endif() endfunction() qt_internal_apply_coverage_flags() |