A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add std=legacy flags for f77/f90 codes that don't compile anymore with gfortran ...
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
f90
/
datatype
/
CMakeLists.txt
diff --git
a/teshsuite/smpi/mpich3-test/f90/datatype/CMakeLists.txt
b/teshsuite/smpi/mpich3-test/f90/datatype/CMakeLists.txt
index
3218a78
..
3576376
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/f90/datatype/CMakeLists.txt
+++ b/
teshsuite/smpi/mpich3-test/f90/datatype/CMakeLists.txt
@@
-17,7
+17,10
@@
if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
typesubf90)
add_executable(${test} EXCLUDE_FROM_ALL ${test}.f90)
add_dependencies(tests ${test})
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()
endforeach()
endif()