Skip to content

Commit 62f0b6d

Browse files
committed
env var CMAKE_BUILD_TYPE in CMake >= 3.22
1 parent f687ed5 commit 62f0b6d

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/ci_cmake.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: ci_cmake
33
env:
44
CMAKE_BUILD_PARALLEL_LEVEL: 2
55
CTEST_PARALLEL_LEVEL: 2
6+
CMAKE_BUILD_TYPE: Release
67

78
on:
89
push:
@@ -40,6 +41,7 @@ jobs:
4041

4142

4243
windows:
44+
needs: linux
4345
runs-on: windows-latest
4446
env:
4547
CMAKE_GENERATOR: MinGW Makefiles

.github/workflows/intel-oneapi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: intel-oneapi
22

33
env:
4-
CMAKE_BUILD_PARALLEL_LEVEL: 2
54
CTEST_PARALLEL_LEVEL: 2
5+
CMAKE_BUILD_TYPE: Release
6+
CC: icx
7+
CXX: icpx
8+
FC: ifx
69

710
on:
811
push:
@@ -43,9 +46,6 @@ jobs:
4346
4447
- name: Configure multi
4548
env:
46-
CC: icx
47-
CXX: icpx
48-
FC: ifort
4949
MPI_ROOT: ${{ env.I_MPI_ROOT }}
5050
run: cmake --preset multi
5151

CMakePresets.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
},
99
{
1010
"name": "multi", "inherits": "default",
11+
"displayName": "Ninja Multi-Config",
1112
"generator": "Ninja Multi-Config"
1213
},
1314
{
1415
"name": "intel", "inherits": "default",
15-
"displayName": "Intel oneAPI LLVM",
16+
"displayName": "Intel oneAPI compiler",
1617
"binaryDir": "${sourceDir}/build-intel",
1718
"environment": {
1819
"CC": "icx",
19-
"FC": "ifort"
20+
"FC": "ifx"
2021
}
2122
}
2223
],

cmake/compilers.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ add_compile_options(
1818
"$<$<COMPILE_LANG_AND_ID:Fortran,GNU>:-mtune=native;-Wall;-Wextra;-fimplicit-none>"
1919
"$<$<AND:$<COMPILE_LANG_AND_ID:Fortran,GNU>,$<CONFIG:Release>>:-fno-backtrace;-Wno-maybe-uninitialized>"
2020
"$<$<AND:$<COMPILE_LANG_AND_ID:Fortran,GNU>,$<CONFIG:RelWithDebInfo>>:-Wno-maybe-uninitialized>"
21-
2221
)
2322

2423
if(NOT EXISTS ${PROJECT_BINARY_DIR}/.gitignore)

0 commit comments

Comments
 (0)