Skip to content

Commit 664ceb3

Browse files
committed
Apply clearer CMake version checking from master
1 parent da7ee1e commit 664ceb3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CMakeLists.txt

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

38-
39-
if (CMAKE_VERSION VERSION_GREATER 3.2.3)
38+
if (NOT (CMAKE_VERSION VERSION_LESS 3.3.1))
4039
# Detect Fortran compiler version directly
4140
if(gfortran_compiler AND (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 5.0.0))
4241
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)