CMake: build serial unit tests without MPI - #7836
Open
Stardust0831 wants to merge 1 commit into
Open
Conversation
Stardust0831
force-pushed
the
serial-tests-no-mpi
branch
from
August 18, 2026 18:44
de2ebff to
bba4c64
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked Issue
No linked issue. This PR corrects the CMake conditions that prevent serial unit tests from being built without MPI.
Unit Tests and/or Case Tests for my changes
cmake -S . -B build -DBUILD_TESTING=ON -DENABLE_MPI=OFF; built the affected serial test targets; ran the focused CTest selection;git diff --check; repository governance check.ENABLE_MPIgating.What's changed?
source_io/test_serialand plane-wavetest_serialwheneverBUILD_TESTINGis enabled, independent of MPI.mpirun-based suites behindENABLE_MPI.source_cell/testfor serial builds so its existing test-onlycell_infoobject is available, while returning before the MPI-only tests when MPI is disabled.Governance Notes