diff --git a/CMakeLists.txt b/CMakeLists.txt index 722006dddfdd262cf68845d144bd629fc7e866ea..09b3048edef466dcddc5b043d1fc735a4cfefd4b 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()