Skip to content

Commit c0316ae

Browse files
committed
Clearer CMake version determination
This makes the 1.x branch and master consistent
1 parent 0022426 commit c0316ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ else()
3535
)
3636
endif()
3737

38-
if (CMAKE_VERSION VERSION_GREATER 3.2.3)
38+
if (NOT CMAKE_VERSION VERSION_LESS 3.3.1)
3939
# Detect Fortran compiler version directly
4040
if(gfortran_compiler AND (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 5.0.0))
4141
set(opencoarrays_aware_compiler true)

src/tests/unit/extensions/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU")
22
set(gfortran_compiler true)
33
endif()
44

5-
if (CMAKE_VERSION VERSION_GREATER 3.2.3)
5+
if (NOT CMAKE_VERSION VERSION_LESS 3.3.1)
66
# Detect Fortran compiler version directly
77
if(gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5.2))
88
set(opencoarrays_aware_compiler true)

0 commit comments

Comments
 (0)