@@ -10,20 +10,22 @@ target_link_libraries(register_vector OpenCoarrays)
1010add_executable (register_alloc_vector register_alloc_vector.f90)
1111target_link_libraries (register_alloc_vector OpenCoarrays)
1212
13- add_executable (register_alloc_comp_1 register_alloc_comp_1.f90)
14- target_link_libraries (register_alloc_comp_1 OpenCoarrays)
15-
16- add_executable (register_alloc_comp_2 register_alloc_comp_2.f90)
17- target_link_libraries (register_alloc_comp_2 OpenCoarrays)
18-
19- add_executable (register_alloc_comp_3 register_alloc_comp_3.f90)
20- target_link_libraries (register_alloc_comp_3 OpenCoarrays)
21-
2213add_executable (allocate_as_barrier allocate_as_barrier.f90)
2314target_link_libraries (allocate_as_barrier OpenCoarrays)
2415
2516add_executable (allocate_as_barrier_proc allocate_as_barrier_proc.f90)
2617target_link_libraries (allocate_as_barrier_proc OpenCoarrays)
2718
28- add_executable (check_remote_alloced_comp_1 check_remote_alloced_comp_1.f90)
29- target_link_libraries (check_remote_alloced_comp_1 OpenCoarrays)
19+ if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7))
20+ add_executable (check_remote_alloced_comp_1 check_remote_alloced_comp_1.f90)
21+ target_link_libraries (check_remote_alloced_comp_1 OpenCoarrays)
22+
23+ add_executable (register_alloc_comp_1 register_alloc_comp_1.f90)
24+ target_link_libraries (register_alloc_comp_1 OpenCoarrays)
25+
26+ add_executable (register_alloc_comp_2 register_alloc_comp_2.f90)
27+ target_link_libraries (register_alloc_comp_2 OpenCoarrays)
28+
29+ add_executable (register_alloc_comp_3 register_alloc_comp_3.f90)
30+ target_link_libraries (register_alloc_comp_3 OpenCoarrays)
31+ endif ()
0 commit comments