From 085ad64d0e60be65ab2ad99144aac133a18beff5 Mon Sep 17 00:00:00 2001
From: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Date: Sun, 23 Apr 2023 15:05:35 -0400
Subject: [PATCH] FATAL -> FATAL_ERROR

Co-authored-by: Andre Sailer <andre.philippe.sailer@cern.ch>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 35a9b11fa..e3d55cc88 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -169,7 +169,7 @@ if(DD4HEP_USE_HEPMC3)
   else()
     option(DD4HEP_HEPMC3_COMPRESSION_SUPPORT "Enable reading of compressed HepMC files" OFF)
     if(DD4HEP_HEPMC3_COMPRESSION_SUPPORT)
-      message(FATAL "HepMC3 v3.2.5 is required for -DDD4HEP_HEPMC3_COMPRESSION_SUPPORT=ON")
+      message(FATAL_ERROR "HepMC3 >= 3.2.5 is required for -DDD4HEP_HEPMC3_COMPRESSION_SUPPORT=ON")
     endif()
   endif()
 endif()
-- 
GitLab