configure_file(${CMAKE_CURRENT_SOURCE_DIR}/typeaints.h.in typeaints.h @ONLY)
foreach(test gaddressf
- # allctypesf hindex1f hindexed_blockf packef typecntsf
- # typem2f typename3f typenamef typesnamef
- typesubf)
+ allctypesf hindex1f hindexed_blockf packef typecntsf
+ typem2f typename3f typenamef typesnamef
+ 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 (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.0"))
+ set_property(SOURCE ${test}.f PROPERTY COMPILE_FLAGS -std=legacy)
+ endif()
endforeach()
endif()