File tree 2 files changed +17
-9
lines changed
2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,16 @@ jobs:
25
25
- {compiler: gcc, version: 11}
26
26
- {compiler: gcc, version: 12}
27
27
- {compiler: gcc, version: 13}
28
- - {compiler: intel, version: '2024.1'}
29
- - {compiler: intel-classic, version: '2021.9'}
30
- build : [cmake]
28
+ - {compiler: intel, version: '2024.1'}
29
+ build : [cmake]
31
30
include :
31
+ - os : ubuntu-22.04
32
+ build : cmake
33
+ toolchain : {compiler: intel-classic, version: '2021.10'}
32
34
- os : ubuntu-latest
33
35
build : cmake-inline
34
- toolchain :
35
- - {compiler: gcc, version: 10}
36
+ toolchain : {compiler: gcc, version: 10}
36
37
exclude :
37
- - os : macos-13
38
- toolchain : {compiler: intel-classic, version: '2021.9'}
39
38
- os : macos-13
40
39
toolchain : {compiler: intel, version: '2024.1'}
41
40
- os : macos-13
56
55
run : pip install --upgrade fypp ninja
57
56
58
57
- name : Setup Fortran compiler
59
- uses :
fortran-lang/[email protected] .1
58
+ uses :
fortran-lang/[email protected] .2
60
59
id : setup-fortran
61
60
with :
62
61
compiler : ${{ matrix.toolchain.compiler }}
Original file line number Diff line number Diff line change @@ -14,13 +14,22 @@ target_sources(
14
14
waterhash.c
15
15
generate_hash_arrays.cpp
16
16
)
17
+
17
18
if (CMAKE_Fortran_COMPILER_ID MATCHES "^Intel" )
19
+
20
+ # Set the C++ standard to prevent icpc breakage
21
+ set (CMAKE_CXX_STANDARD 11)
22
+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
23
+ set (CMAKE_CXX_EXTENSIONS OFF )
24
+
18
25
set_target_properties (test_hash_functions PROPERTIES LINKER_LANGUAGE Fortran)
19
26
endif ()
27
+
20
28
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 10.0)
21
29
target_compile_options (
22
30
test_hash_functions
23
31
PRIVATE
24
32
$<$<COMPILE_LANGUAGE:Fortran>:-fno-range-check>
25
- )
33
+ )
26
34
endif ()
35
+
You can’t perform that action at this time.
0 commit comments