Skip to content

Commit 820d2a8

Browse files
author
Damian Rouson
committed
Ensure gfortran compiler before checking version
1 parent 6a0e441 commit 820d2a8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/tests/unit/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ if (${opencoarrays_aware_compiler})
44
add_subdirectory(init_register)
55
add_subdirectory(collectives)
66
add_subdirectory(sync)
7-
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7)
8-
add_subdirectory(fail_images)
9-
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8)
10-
add_subdirectory(teams)
7+
if (gfortran_compiler)
8+
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7)
9+
add_subdirectory(fail_images)
10+
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8)
11+
add_subdirectory(teams)
12+
endif()
1113
endif()
1214
endif()
1315
else()

0 commit comments

Comments
 (0)