File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,16 @@ jobs:
2525 - {compiler: gcc, version: 11}
2626 - {compiler: gcc, version: 12}
2727 - {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]
3130 include :
31+ - os : ubuntu-22.04
32+ build : cmake
33+ toolchain : {compiler: intel-classic, version: '2021.10'}
3234 - os : ubuntu-latest
3335 build : cmake-inline
34- toolchain :
35- - {compiler: gcc, version: 10}
36+ toolchain : {compiler: gcc, version: 10}
3637 exclude :
37- - os : macos-13
38- toolchain : {compiler: intel-classic, version: '2021.9'}
3938 - os : macos-13
4039 toolchain : {compiler: intel, version: '2024.1'}
4140 - os : macos-13
5655 run : pip install --upgrade fypp ninja
5756
5857 - name : Setup Fortran compiler
59- uses : fortran-lang/setup-fortran@v1.6.1
58+ uses : fortran-lang/setup-fortran@v1.6.2
6059 id : setup-fortran
6160 with :
6261 compiler : ${{ matrix.toolchain.compiler }}
Original file line number Diff line number Diff line change @@ -14,13 +14,22 @@ target_sources(
1414 waterhash.c
1515 generate_hash_arrays.cpp
1616)
17+
1718if (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+
1825 set_target_properties (test_hash_functions PROPERTIES LINKER_LANGUAGE Fortran)
1926endif ()
27+
2028if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 10.0)
2129 target_compile_options (
2230 test_hash_functions
2331 PRIVATE
2432 $<$<COMPILE_LANGUAGE:Fortran>:-fno-range-check>
25- )
33+ )
2634endif ()
35+
You can’t perform that action at this time.
0 commit comments