Skip to content

Commit

Permalink
Disable testing when only building _4
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Jun 15, 2023
1 parent e8335c5 commit 3ba3e14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
openmp: [ ON, OFF ]
options: [ -DBUILD_D=OFF -DBUILD_TESTING=OFF, -DBUILD_4=OFF ]
options: [ -DBUILD_D=OFF, -DBUILD_4=OFF ]

steps:

Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if(BUILD_4 AND BUILD_D)
set(kinds "4" "d")
elseif(BUILD_4 AND NOT BUILD_D)
set(kinds "4")
if(BUILD_TESTING)
set(BUILD_TESTING OFF)
message(WARNING "Disabling build testing for BUILD_4-only case")
endif()
elseif(BUILD_D AND NOT BUILD_4)
set(kinds "d")
else()
Expand Down

0 comments on commit 3ba3e14

Please sign in to comment.