Skip to content

Commit 35b9374

Browse files
committed
Fix CMake build for new tests and code on 422
1 parent a772216 commit 35b9374

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,6 @@ if(opencoarrays_aware_compiler)
651651
add_caf_test(comp_allocated_1 2 comp_allocated_1)
652652
add_caf_test(comp_allocated_2 2 comp_allocated_2)
653653
add_caf_test(alloc_comp_get_convert_nums 2 alloc_comp_get_convert_nums)
654-
add_caf_test(alloc_comp_send_convert_nums 2 alloc_comp_send_convert_nums)
655654
endif()
656655

657656

@@ -668,9 +667,11 @@ if(opencoarrays_aware_compiler)
668667
endif()
669668
if((NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.3.0) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
670669
add_caf_test(send_convert_char_array 2 send_convert_char_array)
670+
add_caf_test(alloc_comp_send_convert_nums 2 alloc_comp_send_convert_nums)
671671
else()#if((CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
672672
message( AUTHOR_WARNING "Skipping the following tests to GFortran < 7.3.0 lack of compatibility:
673-
send_convert_char_array.f90")
673+
send_convert_char_array.f90
674+
alloc_comp_send_convert_nums.f90")
674675
endif()
675676
endif()
676677

src/tests/unit/send-get/CMakeLists.txt

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,24 @@ caf_compile_executable(get_with_vector_index get_with_vector_index.f90)
1414

1515
## Pure send() tests
1616
caf_compile_executable(send_array send_array_test.f90)
17+
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
18+
caf_compile_executable(send_convert_nums send_convert_nums.f90)
19+
endif()
1720
caf_compile_executable(send_with_vector_index send_with_vector_index.f90)
1821

1922
# Pure sendget() tests
2023
caf_compile_executable(sendget_convert_char_array sendget_convert_char_array.f90)
24+
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
25+
caf_compile_executable(sendget_convert_nums sendget_convert_nums.f90)
26+
endif()
2127
caf_compile_executable(send_convert_char_array send_convert_char_array.f90)
2228
#caf_compile_executable(sendget_with_vector_index sendget_with_vector_index.f90)
2329
caf_compile_executable(strided_sendget strided_sendget.f90)
2430
set_target_properties(build_strided_sendget
2531
PROPERTIES MIN_IMAGES 3)
2632

27-
if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.3.0))
28-
caf_compile_executable(sendget_convert_nums sendget_convert_nums.f90)
29-
caf_compile_executable(send_convert_nums send_convert_nums.f90)
33+
# Allocatable components w/ convert
34+
if((NOT (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
3035
caf_compile_executable(alloc_comp_get_convert_nums alloc_comp_get_convert_nums.f90)
3136
caf_compile_executable(alloc_comp_send_convert_nums alloc_comp_send_convert_nums.f90)
32-
elseif((CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
33-
message( AUTHOR_WARNING
34-
"Skipping building the following tests due to GFortran < 7.3.0 lack of compatibility:
35-
sendget_convert_nums.f90
36-
send_convert_nums.f90"
37-
)
38-
3937
endif()
40-

0 commit comments

Comments
 (0)