From 78a6d0f642c7c64228f58e3f46b8c705124fa822 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Mon, 24 Feb 2025 02:02:19 +0100
Subject: [PATCH] Add missing DEFINED in CMakeLists.txt

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4cca59ccc..06a273e2c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -843,7 +843,7 @@ if (MPI_FOUND)
 else()
   if (PUGS_ENABLE_MPI MATCHES "^OFF$")
     message(" MPI: explicitly deactivated!")
-  elseif((NOT PUGS_HAS_PARMETIS) and (NOT PUGS_HAS_PTSCOTCH))
+  elseif((NOT DEFINED PUGS_HAS_PARMETIS) and (NOT DEFINED PUGS_HAS_PTSCOTCH))
     message(" MPI: deactivated: ParMETIS and PTScotch cannot be found!")
   else()
     if (PUGS_ENABLE_MPI MATCHES "^(AUTO|ON)$")
-- 
GitLab