From c0285ac0ce19a0ae25ace975f340a2d2e4e0d863 Mon Sep 17 00:00:00 2001 From: Edgar Gabriel Date: Tue, 28 Oct 2025 12:54:26 -0500 Subject: [PATCH] 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". --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb89994ece..de49a680b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()