From 6487a260a7d515c65a3ef44b5b1a6b54618b0f81 Mon Sep 17 00:00:00 2001
From: Marco Clemencic <marco.clemencic@cern.ch>
Date: Tue, 25 Jul 2023 14:11:52 +0200
Subject: [PATCH] Minor fix in a CMake error message

---
 cmake/GaudiToolbox.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/GaudiToolbox.cmake b/cmake/GaudiToolbox.cmake
index 72380e425c..83536502ec 100644
--- a/cmake/GaudiToolbox.cmake
+++ b/cmake/GaudiToolbox.cmake
@@ -711,7 +711,7 @@ function(gaudi_add_tests type)
     if(type STREQUAL "QMTest")
 
         if(NOT TARGET Python::Interpreter)
-            message(FATAL_ERROR "No python interpreter was found, call find_package(Python COMPONENT Interpreter) first.")
+            message(FATAL_ERROR "No python interpreter was found, call find_package(Python REQUIRED Interpreter) first.")
         endif()
 
         if(test_directory)
-- 
GitLab