diff options
author | Jakub Jelen <jjelen@redhat.com> | 2024-03-08 10:20:38 +0100 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2024-03-08 13:34:23 +0100 |
commit | 81f9b000054d64a9a80617caa7ace463272fa06f (patch) | |
tree | 954f0d942ef72623b07431e53810b1f4bdd36156 | |
parent | 64ef3fefb4d1ab61ba9dadf69eccb631142016c2 (diff) | |
download | libssh-master.tar.gz libssh-master.tar.xz libssh-master.zip |
The gcc should be able to select this automatically based on the presence of
-pthread is present on the commandline, but given that we link the tests static,
we do not have this?
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | cmake/Modules/CodeCoverage.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/CodeCoverage.cmake b/cmake/Modules/CodeCoverage.cmake index c500cfa4..0fd70ae2 100644 --- a/cmake/Modules/CodeCoverage.cmake +++ b/cmake/Modules/CodeCoverage.cmake @@ -164,7 +164,7 @@ foreach(LANG ${LANGUAGES}) endif() endforeach() -set(COVERAGE_COMPILER_FLAGS "-g --coverage" +set(COVERAGE_COMPILER_FLAGS "-g --coverage -fprofile-update=atomic" CACHE INTERNAL "") if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") |