@@ -4,14 +4,14 @@ endif()
4
4
5
5
if (CMAKE_VERSION VERSION_GREATER 3.2.3 )
6
6
# Detect Fortran compiler version directly
7
- if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5 ))
7
+ if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5.2 ))
8
8
set (opencoarrays_aware_compiler true )
9
9
else ()
10
10
set (opencoarrays_aware_compiler false )
11
11
endif ()
12
12
else ()
13
13
# Use the C compiler version as a proxy for the Fortran compiler version (won't work with NAG)
14
- if (gfortran_compiler AND (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5 ))
14
+ if (gfortran_compiler AND (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.2 ))
15
15
set (opencoarrays_aware_compiler true )
16
16
else ()
17
17
set (opencoarrays_aware_compiler false )
@@ -40,11 +40,11 @@ function(generate_test_script base_name num_images)
40
40
file (WRITE "${harness} " "#!/bin/bash\n " )
41
41
file (APPEND "${harness} " "cd ${CMAKE_CURRENT_BINARY_DIR} \n " )
42
42
set (executable "${base_name} _extension" )
43
- if (opencoarrays_aware_compiler )
44
- # Explicitly include the directory containing the .mod file because the caf script won't pass it
43
+ if (opencoarrays_aware_compiler )
44
+ # Explicitly include the directory containing the .mod file because the caf script won't pass it
45
45
# automatically when the script wraps an OpenCoarrays-aware compiler
46
- file (APPEND
47
- "${harness} "
46
+ file (APPEND
47
+ "${harness} "
48
48
"FC=mpif90 ${CMAKE_INSTALL_PREFIX} /bin/caf ${source} -o ${executable} -I${CMAKE_BINARY_DIR} /mod -DUSE_EXTENSIONS\n "
49
49
)
50
50
else ()
0 commit comments