diff --git a/cmake/CompileOptions.cmake b/cmake/CompileOptions.cmake index adca40e..72ac771 100644 --- a/cmake/CompileOptions.cmake +++ b/cmake/CompileOptions.cmake @@ -24,7 +24,7 @@ if (ENABLE_SANITIZER) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-sanitize-recover=${sanitizers}") endif () if (ENABLE_COVERAGE) - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} --coverage") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} --coverage -fprofile-update=atomic") endif () cmake_host_system_information(RESULT cores QUERY NUMBER_OF_LOGICAL_CORES)