From e53523e19956b25781d426265a6b0779449613ad Mon Sep 17 00:00:00 2001
From: Martin Heistermann <git@mheistermann.de>
Date: Mon, 17 Feb 2025 21:54:53 +0100
Subject: [PATCH] Avoid CLP finder crash if CoinUtils not found.

---
 finders/FindCLP.cmake | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/finders/FindCLP.cmake b/finders/FindCLP.cmake
index e7056f6..9ad5f46 100644
--- a/finders/FindCLP.cmake
+++ b/finders/FindCLP.cmake
@@ -4,7 +4,11 @@
 if(NOT TARGET Coin::CLP)
 
 if(NOT TARGET Coin::CoinUtils)
-    find_package(CoinUtils REQUIRED)
+    find_package(CoinUtils QUIET)
+    if(NOT TARGET Coin::CoinUtils)
+        message(STATUS "FindCLP: Could not find CoinUtils as prerequisite of CLP.")
+        return()
+    endif()
 endif()
 
 find_path(CLP_INCLUDE_DIR
-- 
GitLab