File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ endif()
49
49
# Set CMAKE_Fortran_COMPILER_VERSION if CMake doesn't do it for us
50
50
#-----------------------------------------------------------------
51
51
if ( NOT CMAKE_Fortran_COMPILER_VERSION )
52
- if ( CMAKE_VERSION VERSION_GREATER_EQUAL 3.3.1 )
52
+ if ( NOT ( CMAKE_VERSION VERSION_LESS 3.3.1 ) )
53
53
message ( AUTHOR_WARNING
54
54
"CMake ${CMAKE_VERSION} should know about Fortran compiler versions but is missing CMAKE_Fortran_COMPILER_VERSION variable."
55
55
)
@@ -105,7 +105,7 @@ endif()
105
105
CACHE STRING "Flags used by the compiler during release builds with debug info" FORCE )
106
106
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O0" )
107
107
endif ()
108
- if ( gfortran_compiler AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 7.0.0 )
108
+ if ( gfortran_compiler AND ( NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 ) )
109
109
add_definitions (-DGCC_GE_7 ) # Tell library to build against GFortran 7.x bindings b/c we might be using clang for C
110
110
endif ()
111
111
@@ -430,7 +430,7 @@ if(opencoarrays_aware_compiler)
430
430
add_mpi_test (asynchronous_hello_world 3 ${tests_root} /integration/events/asynchronous_hello_world )
431
431
432
432
# Regression tests based on reported issues
433
- if (gfortran_compiler AND (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 7.0.0 ))
433
+ if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 ))
434
434
# GFortran PR 78505 only fixed on trunk/gcc 7
435
435
add_mpi_test (source -alloc-no-sync 8 ${tests_root} /regression/reported/source-alloc-sync )
436
436
endif ()
You can’t perform that action at this time.
0 commit comments