Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sometimes Fortran and CXX compilers are not the same families, so test only the one...
authorAugustin Degomme <adegomme@gmail.com>
Sun, 10 Jan 2021 17:27:32 +0000 (18:27 +0100)
committerAugustin Degomme <adegomme@gmail.com>
Sun, 10 Jan 2021 17:27:32 +0000 (18:27 +0100)
teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt

index 9a64a2c..6321488 100644 (file)
@@ -17,7 +17,7 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
     add_executable(${test} EXCLUDE_FROM_ALL ${test}.f)
     add_dependencies(tests ${test})
     target_link_libraries(${test} simgrid mtest_f77)
-    if((CMAKE_Fortran_COMPILER_ID MATCHES "GNU") AND (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.0"))
+    if((CMAKE_Fortran_COMPILER_ID MATCHES "GNU") AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS "10.0"))
       set_property(SOURCE ${test}.f PROPERTY COMPILE_FLAGS -std=legacy)
     endif()
   endforeach()