Skip to content

Commit 6c6a6ef

Browse files
committed
don't warn if release
1 parent 6283fc5 commit 6c6a6ef

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

.github/workflows/oneapi-linux.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ jobs:
8686
- name: build
8787
run: cmake --build --preset default
8888

89-
- name: build failed
90-
if: ${{ failure() }}
91-
run: cmake --build --preset default -j1 -v
92-
9389
- name: unit test
9490
run: ctest --preset default -V
9591

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.19...3.29)
1+
cmake_minimum_required(VERSION 3.19...4.0)
22

33
project(FortranMPIexamples
44
LANGUAGES C Fortran

cmake/compilers.cmake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang|Intel")
1+
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang|IntelLLVM")
22
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wall>)
33
endif()
44

@@ -9,15 +9,14 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
99
endif()
1010

1111
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
12-
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-Wall>)
12+
add_compile_options($<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-Wall>)
1313
add_compile_options(
1414
"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-Wextra;-fcheck=all;-Werror=array-bounds>"
1515
)
1616

17-
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
17+
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "IntelLLVM")
1818
add_compile_options(
19-
"$<$<COMPILE_LANGUAGE:Fortran>:-warn>"
19+
"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-warn>"
2020
"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-check;-traceback>"
21-
"$<$<CONFIG:Debug>:-Rno-debug-disables-optimization>"
2221
)
2322
endif()

0 commit comments

Comments
 (0)