Skip to content

Commit

Permalink
Reduce minimum CMake version to 3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Sep 11, 2023
1 parent 36f5bb0 commit edfe83d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.

cmake_minimum_required (VERSION 3.25)
cmake_minimum_required (VERSION 3.24)

## find ecbuild
find_package( ecbuild 3.7 QUIET HINTS ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild )
Expand Down Expand Up @@ -37,7 +37,11 @@ if( NOT FYPP)
endif()

## find OpenACC
### Workaround for CMake bug (fixed in CMake 3.25)
find_package(OpenACC COMPONENTS Fortran)
if( OpenACC_Fortran_FOUND )
set( OpenACC_FOUND ON )
endif()
ecbuild_add_option( FEATURE ACC
DESCRIPTION "OpenACC" DEFAULT ON
CONDITION OpenACC_FOUND )
Expand Down

0 comments on commit edfe83d

Please sign in to comment.