@@ -10,20 +10,22 @@ target_link_libraries(register_vector OpenCoarrays)
10
10
add_executable (register_alloc_vector register_alloc_vector.f90 )
11
11
target_link_libraries (register_alloc_vector OpenCoarrays )
12
12
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
-
22
13
add_executable (allocate_as_barrier allocate_as_barrier.f90 )
23
14
target_link_libraries (allocate_as_barrier OpenCoarrays )
24
15
25
16
add_executable (allocate_as_barrier_proc allocate_as_barrier_proc.f90 )
26
17
target_link_libraries (allocate_as_barrier_proc OpenCoarrays )
27
18
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