File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 25
25
26
26
jobs :
27
27
28
- core- gcc :
28
+ gcc-12-13-14 :
29
29
timeout-minutes : 15
30
30
31
31
strategy :
59
59
- uses : ./.github/workflows/composite-unix
60
60
61
61
62
- gcc-old :
62
+ gcc-9-10-11 :
63
63
timeout-minutes : 15
64
64
65
65
strategy :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ cmake -B build -Dh5fortran_ROOT=~/h5fortran/
44
44
and in your CMakeLists.txt
45
45
46
46
``` cmake
47
- cmake_minimum_required(VERSION 3.14...3. 20)
47
+ cmake_minimum_required(VERSION 3.20)
48
48
project(myProject LANGUAGES Fortran)
49
49
50
50
find_package(h5fortran)
Original file line number Diff line number Diff line change @@ -93,7 +93,14 @@ cmake -B build
93
93
cmake --build build
94
94
```
95
95
96
- for more details see [ Install.md] ( ./Install.md ) .
96
+ By default, h5fortran CMake doesn't specify optimization flags to help working with old compilers like GCC 7.
97
+ To enable optimization, set:
98
+
99
+ ``` sh
100
+ cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
101
+ ```
102
+
103
+ For more details see [ Install.md] ( ./Install.md ) .
97
104
98
105
For general use with non-CMake build systems, "h5fortran.pc" pkg-config file is also generated / installed.
99
106
You can’t perform that action at this time.
0 commit comments