minor change to MPI detection logic (#294)

somehow the test whether we requested MPI support or not stopped
working, although no obvious code change can be located.

Make the if-statement more stringent by explicitely testing whether
USE_MPI_SUPPORT is "ON".
This commit is contained in:
Edgar Gabriel
2025-10-28 12:54:26 -05:00
committed by GitHub
parent 87d87cc881
commit c0285ac0ce
+1 -1
View File
@@ -168,7 +168,7 @@ if (NOT BUILD_TESTS_ONLY)
set(BUILD_UNIT_TESTS OFF)
endif()
if (USE_EXTERNAL_MPI)
if (USE_EXTERNAL_MPI STREQUAL "ON")
if(NOT HAVE_EXTERNAL_MPI)
message(FATAL_ERROR "External MPI support requested but MPI support not found. Build Aborted")
endif()