Finalizing ability to generate code coverage (slowly and painfully)

This commit is contained in:
Jeffrey Garretson
2021-09-14 00:01:54 -06:00
parent 09cd62a289
commit 9db69b2fd0
8 changed files with 28 additions and 3 deletions

View File

@@ -140,4 +140,9 @@ if(ENABLE_MPI)
# we changed compiler, link HDF5 libraries
link_libraries(${HDF5_Fortran_LIBRARIES} ${HDF5_Fortran_HL_LIBRARIES})
endif()
if(ENABLE_CODECOV)
# track code coverage
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/codecov_prof)
string(APPEND CMAKE_Fortran_FLAGS " -prof-gen=srcpos -prof-dir=${CMAKE_BINARY_DIR}/bin/codecov_prof")
endif()