From 64fe89d8b7f69f55d46388c6263155b25c12698b Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 25 Jan 2022 08:43:50 +0100
Subject: [PATCH] [cmake] Fail early if poetry did not succeed.

---
 CMakeLists.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 722006dddfd..09b3048edef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -253,6 +253,12 @@ if(POETRY)
             set(_OGS_PYTHON_PACKAGES_SHA1 "${_ogs_python_packages_sha1}"
                 CACHE INTERNAL ""
             )
+        else()
+            message(
+                FATAL_ERROR
+                    "Installation of Python packages via poetry failed!\n"
+                    "To disable poetry set OGS_USE_POETRY=OFF."
+            )
         endif()
     endif()
 endif()
-- 
GitLab