From ae8f2dfc8f0fd854a2eb0268c12cdfcc4493d0a8 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 31 Jan 2020 12:24:01 +0100 Subject: [PATCH] try to get the mpich3 tests to compile with gfortran 10 --- teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt b/teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt index 8deb66a050..c20537aad2 100644 --- a/teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt +++ b/teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt @@ -20,6 +20,11 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN) endforeach() endif() +# These test seem to not compile with gfortran 10 for now, so work around that bug that is not ours +if((CMAKE_Fortran_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.99")) + set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/inplacef.f" PROPERTY COMPILE_FLAGS -fallow-argument-mismatch) +endif() + set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/allredint8f.f -- 2.20.1