Skip to content

Commit 5be132f

Browse files
committed
Minimizing CMakeLists differences between branches
1 parent 5057da9 commit 5be132f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ if ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "GNU" )
2929
# add_definitions(-DPREFIX_NAME=_gfortran_caf_)
3030
else()
3131
message(WARNING
32-
"*** Attempting to build with untested Fortran compiler: ${CMAKE_Fortran_COMPILER_ID}."
33-
"*** Please report any failures to [email protected]"
32+
"\n"
33+
"Attempting to build with untested Fortran compiler: ${CMAKE_Fortran_COMPILER_ID}. "
34+
"Please report any failures to [email protected]\n\n"
3435
)
3536
endif()
3637

src/tests/unit/extensions/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ endif()
44

55
if (CMAKE_VERSION VERSION_GREATER 3.2.3)
66
# 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))
88
set(opencoarrays_aware_compiler true)
99
else()
1010
set(opencoarrays_aware_compiler false)
1111
endif()
1212
else()
1313
# 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))
1515
set(opencoarrays_aware_compiler true)
1616
else()
1717
set(opencoarrays_aware_compiler false)
@@ -40,11 +40,11 @@ function(generate_test_script base_name num_images)
4040
file(WRITE "${harness}" "#!/bin/bash\n")
4141
file(APPEND "${harness}" "cd ${CMAKE_CURRENT_BINARY_DIR}\n")
4242
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
4545
# automatically when the script wraps an OpenCoarrays-aware compiler
46-
file(APPEND
47-
"${harness}"
46+
file(APPEND
47+
"${harness}"
4848
"FC=mpif90 ${CMAKE_INSTALL_PREFIX}/bin/caf ${source} -o ${executable} -I${CMAKE_BINARY_DIR}/mod -DUSE_EXTENSIONS\n"
4949
)
5050
else()

0 commit comments

Comments
 (0)