Skip to content

Commit cb04150

Browse files
authored
Merge pull request #264 from Goddard-Fortran-Ecosystem/develop
2 parents ee489ee + ce34f64 commit cb04150

File tree

19 files changed

+48
-83
lines changed

19 files changed

+48
-83
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
19-
compiler: [gfortran-12, gfortran-13, gfortran-14]
18+
os: [ubuntu-22.04, ubuntu-24.04, macos-14, macos-15]
19+
compiler: [gfortran-12, gfortran-13, gfortran-14, gfortran-15]
2020
# gfortran-10 and -11 are only on ubuntu-22.04
21-
# gfortran-13 and -14 are not on ubuntu-22.04
21+
# gfortran-13 and -14 and -15 are not on ubuntu-22.04
22+
# gfortran-15 is only on macos
2223
include:
2324
- os: ubuntu-22.04
2425
compiler: gfortran-10
@@ -29,6 +30,10 @@ jobs:
2930
compiler: gfortran-13
3031
- os: ubuntu-22.04
3132
compiler: gfortran-14
33+
- os: ubuntu-22.04
34+
compiler: gfortran-15
35+
- os: ubuntu-24.04
36+
compiler: gfortran-15
3237

3338
# fail-fast if set to 'true' here is good for production, but when
3439
# debugging, set to 'false'. fail-fast means if *any* ci test in the matrix fails

CMakeLists.txt

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
cmake_minimum_required (VERSION 3.12)
1+
cmake_minimum_required (VERSION 3.24)
22
if (COMMAND cmake_policy)
33
cmake_policy (SET CMP0003 NEW)
44
endif (COMMAND cmake_policy)
55

66
project (GFTL
7-
VERSION 1.15.2
7+
VERSION 1.16.0
88
LANGUAGES NONE)
99

1010
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
@@ -14,19 +14,7 @@ if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
1414
endif ()
1515

1616
# For BSD systems use GNU m4
17-
find_program( M4 NAMES "gm4" "m4" PATHS "${CMAKE_CURRENT_BINARY_DIR}/m4/bin")
18-
if( NOT M4 )
19-
if( WIN32 )
20-
message( STATUS "Downloading M4 program from SourceForge")
21-
file(DOWNLOAD "https://downloads.sourceforge.net/gnuwin32/m4-1.4.14-1-bin.zip" "${CMAKE_CURRENT_BINARY_DIR}/m4-bin.zip" )
22-
file(DOWNLOAD "http://downloads.sourceforge.net/gnuwin32/m4-1.4.14-1-dep.zip" "${CMAKE_CURRENT_BINARY_DIR}/m4-dep.zip" )
23-
file(ARCHIVE_EXTRACT INPUT "${CMAKE_CURRENT_BINARY_DIR}/m4-bin.zip" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/m4" PATTERNS "bin")
24-
file(ARCHIVE_EXTRACT INPUT "${CMAKE_CURRENT_BINARY_DIR}/m4-dep.zip" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/m4" PATTERNS "bin")
25-
set(M4 "${CMAKE_CURRENT_BINARY_DIR}/m4/bin/m4.exe")
26-
else ()
27-
message( SEND_ERROR "m4 program not found" )
28-
endif()
29-
endif()
17+
find_program( M4 NAMES gm4 m4 m4.exe REQUIRED )
3018

3119
# Some preprocessing tests can be run without the
3220
# Fortran testing framework.

ChangeLog.MD

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
## Unreleased
44

5+
## [1.16.0] - 2025-09-29
6+
7+
### Removed
8+
9+
- Removed download of `m4` on Windows if not found. We now require the user to provide it
10+
- Removed `filter.x.in` for pure Awk in CMake `custom_command`
11+
12+
### Changed
13+
14+
- Updated CMake minimum version to 3.24
15+
- Made `awk` and `m4` `REQUIRED` via `find_program`
16+
- Update CI to use `macos-15`, remove `macos-13`
17+
- Add `gfortran-15` to macOS CI
18+
519
## [1.15.2] - 2025-02-10
620

721
### Fixed
@@ -14,7 +28,6 @@
1428

1529
- workaround for gfortran tests on containers with unlimited polymorphic entities
1630

17-
1831
## [1.15.0] - 2025-01-31
1932

2033
### Added

examples/v1/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 3.0)
21
if ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Intel")
32
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -assume realloc_lhs")
43
endif()

examples/v1/Map/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
cmake_minimum_required(VERSION 3.0)
2-
31
include_directories("$ENV{FTL}/include")
42
add_executable(CIKey.x CaseInsensitiveKey.F90)
53
add_executable(StringPoly.x StringPoly.F90)

examples/v1/Tracer/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
cmake_minimum_required(VERSION 3.0)
2-
31
include_directories("$ENV{FTL}/include")
42
link_directories("$ENV{MODELE}/modelEMaster/model/shared")
53
link_directories("$ENV{MODELE}/modelEMaster/model/MPI_Support")

examples/v1/Vector/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
cmake_minimum_required(VERSION 3.0)
2-
31
include_directories("$ENV{FTL}/include")
42
#add_executable(VecIntAndReal.x EXCLUDE_FROM_ALL VecIntAndReal.F90)
53
#add_executable(VecMyType.x EXCLUDE_FROM_ALL VecMyType.F90)

examples/v2/Vector/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
cmake_minimum_required(VERSION 3.0)
2-
31
project(VectorExamples Fortran)
42

53
find_package(GFTL REQUIRED)

include/v1/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ target_include_directories (gftl-v1 INTERFACE
1212
$<INSTALL_INTERFACE:${dest}/include/v1> # for client in install mode
1313
)
1414

15-
find_program (M4 m4)
16-
if( NOT M4 )
17-
message( SEND_ERROR "m4 program not found" )
18-
endif()
19-
2015
add_subdirectory (templates)
2116
add_subdirectory (types)
2217

include/v2/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ set (template_parameters
1818
T2 # pair
1919
)
2020

21-
find_program( M4 m4)
22-
if( NOT M4 )
23-
message( SEND_ERROR "m4 program not found" )
24-
endif()
25-
2621
add_subdirectory(shared)
2722
add_subdirectory(parameters)
2823

0 commit comments

Comments
 (0)