From e70bcdc2df5064c81e04a5130467434a114cf4cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Thu, 25 Oct 2018 19:27:05 +0200 Subject: [PATCH] fix coverage target dependencies mpi_unit_tests are now always build (even when MPI is not used) --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca49d2a4c..37f98ba30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) - if(${PASTIS_HAS_MPI}) - set(MPI_UNIT_TESTS mpi_unit_tests) - endif() - add_custom_target(run_unit_tests ALL 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." ) -- GitLab