Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to get the mpich3 tests to compile with gfortran 10
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / coll / CMakeLists.txt
index 9ea90c1..c20537a 100644 (file)
@@ -9,17 +9,22 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
 
   foreach(test alltoallvf
-             # allredint8f allredopttf alltoallwf
-              exscanf inplacef
-            # nonblockingf nonblocking_inpf
-              redscatf red_scat_blockf reducelocalf
-              split_typef uallreducef vw_inplacef)
+           allredint8f allredopttf alltoallwf
+           exscanf inplacef
+           nonblockingf nonblocking_inpf
+           redscatf red_scat_blockf reducelocalf
+           split_typef uallreducef vw_inplacef)
     add_executable(${test} EXCLUDE_FROM_ALL ${test}.f)
     add_dependencies(tests ${test})
     target_link_libraries(${test} simgrid mtest_f77)
   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