Skip to content

Commit 190cb10

Browse files
committed
Update CMake developer warnings for GCC < 7
- Ensure that there aren't build failures when OPENCOARRAYS_DEVELOPER=ON
1 parent 8ef3210 commit 190cb10

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ if(opencoarrays_aware_compiler)
555555
message( STATUS "Allocatable components of coarray derived types only supported in GFortran >= 7 with OpenCoarrays > 1.8.4" )
556556
message( STATUS "(but full support not anticipated until OpenCoarrays 2.0 release)" )
557557
if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
558-
message( WARNING "Allocatable components of coarray derived type developer tests enabled, despite lack of support in GFortran < 7\n These tests should fail." )
558+
message( AUTHOR_WARNING "Allocatable components of coarray derived type developer tests enabled, despite lack of support in GFortran < 7\n These tests should fail." )
559559
endif()
560560
add_caf_test(register_alloc_comp_1 2 register_alloc_comp_1)
561561
add_caf_test(register_alloc_comp_2 2 register_alloc_comp_2)
@@ -599,7 +599,7 @@ if(opencoarrays_aware_compiler)
599599
# Regression tests based on reported issues
600600
if((gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
601601
if( CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 )
602-
message( WARNING "Developer tests requested and GFortran < 7: test source-alloc-no-sync may fail" )
602+
message( AUTHOR_WARNING "Developer tests requested and GFortran < 7: test source-alloc-no-sync may fail" )
603603
endif()
604604
# GFortran PR 78505 only fixed on trunk/gcc 7, issue #243
605605
add_caf_test(source-alloc-no-sync 8 source-alloc-sync)

src/tests/unit/init_register/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@ caf_compile_executable(register_alloc_vector register_alloc_vector.f90)
55
caf_compile_executable(allocate_as_barrier allocate_as_barrier.f90)
66
caf_compile_executable(allocate_as_barrier_proc allocate_as_barrier_proc.f90)
77

8-
if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
8+
if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0))
99
caf_compile_executable(async_comp_alloc async_comp_alloc.f90)
1010
caf_compile_executable(async_comp_alloc_2 async_comp_alloc_2.f90)
1111
caf_compile_executable(register_alloc_comp_1 register_alloc_comp_1.f90)
1212
caf_compile_executable(register_alloc_comp_2 register_alloc_comp_2.f90)
1313
caf_compile_executable(register_alloc_comp_3 register_alloc_comp_3.f90)
1414
caf_compile_executable(comp_allocated_1 comp_allocated_1.f90)
1515
caf_compile_executable(comp_allocated_2 comp_allocated_2.f90)
16+
elseif((CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
17+
message( AUTHOR_WARNING "Skipping building the following tests due to GFortran < 7.x lack of compatibility:
18+
async_comp_alloc.f90
19+
async_comp_alloc_2.f90
20+
register_alloc_comp_1.f90
21+
register_alloc_comp_2.f90
22+
register_alloc_comp_3.f90
23+
comp_allocated_1.f90
24+
comp_allocated_2.f90" )
1625
endif()

0 commit comments

Comments
 (0)