Skip to content
Snippets Groups Projects
Commit e70bcdc2 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

fix coverage target dependencies

mpi_unit_tests are now always build (even when MPI is not used)
parent a25361a3
No related branches found
No related tags found
1 merge request!11Feature/mpi
...@@ -203,14 +203,10 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage") ...@@ -203,14 +203,10 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
set(GCOVR_OPTIONS --object-directory="${PASTIS_BINARY_DIR}" -r "${PASTIS_SOURCE_DIR}/src" ${GCOVR_EXCLUDE} ${GCOVR_EXTRA}) set(GCOVR_OPTIONS --object-directory="${PASTIS_BINARY_DIR}" -r "${PASTIS_SOURCE_DIR}/src" ${GCOVR_EXCLUDE} ${GCOVR_EXTRA})
if(${PASTIS_HAS_MPI})
set(MPI_UNIT_TESTS mpi_unit_tests)
endif()
add_custom_target(run_unit_tests add_custom_target(run_unit_tests
ALL ALL
COMMAND ${CMAKE_CTEST_COMMAND} -j ${PROCESSOR_COUNT} COMMAND ${CMAKE_CTEST_COMMAND} -j ${PROCESSOR_COUNT}
DEPENDS unit_tests ${MPI_UNIT_TESTS} pastis DEPENDS unit_tests mpi_unit_tests pastis
COMMENT "Executing unit tests." COMMENT "Executing unit tests."
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment