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 (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.99"))
+ set_property(SOURCE ${test}.f PROPERTY COMPILE_FLAGS -std=legacy)
+ endif()
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
foreach(test gaddressf
allctypesf hindex1f hindexed_blockf packef typecntsf
typem2f typename3f typenamef typesnamef
- typesubf)
+ typesubf)
add_executable(${test} EXCLUDE_FROM_ALL ${test}.f)
add_dependencies(tests ${test})
- target_link_libraries(${test} simgrid mtest_f77)
+ target_link_libraries(${test} simgrid mtest_f77)
+ if((CMAKE_Fortran_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.99"))
+ set_property(SOURCE ${test}.f PROPERTY COMPILE_FLAGS -std=legacy)
+ endif()
endforeach()
endif()
include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
add_executable(allpairf EXCLUDE_FROM_ALL allpairf.f)
+ if((CMAKE_Fortran_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.99"))
+ set_property(SOURCE allpairf.f PROPERTY COMPILE_FLAGS -std=legacy)
+ endif()
add_executable(greqf EXCLUDE_FROM_ALL greqf.f dummyf.f)
# add_executable(mprobef EXCLUDE_FROM_ALL mprobef.f)
add_executable(statusesf EXCLUDE_FROM_ALL statusesf.f)
add_executable(${test} EXCLUDE_FROM_ALL ${test}.f90)
add_dependencies(tests ${test})
target_link_libraries(${test} simgrid mtest_f90)
+ if((CMAKE_Fortran_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.99"))
+ set_property(SOURCE ${test}.f90 PROPERTY COMPILE_FLAGS -std=legacy)
+ endif()
endforeach()
endif()
typesubf90)
add_executable(${test} EXCLUDE_FROM_ALL ${test}.f90)
add_dependencies(tests ${test})
- target_link_libraries(${test} simgrid mtest_f90)
+ target_link_libraries(${test} simgrid mtest_f90)
+ if((CMAKE_Fortran_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.99"))
+ set_property(SOURCE ${test}.f90 PROPERTY COMPILE_FLAGS -std=legacy)
+ endif()
endforeach()
endif()