From 7d2a6bc67d60f9e083c964c55702a63e403d771c Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Fri, 31 Jan 2025 14:03:29 +0100 Subject: launchers: issue a message when rules are not defined --- Source/cmake.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index a9c14f5..3f2dc7f 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2662,11 +2662,11 @@ int cmake::ActualConfigure() if (mf->IsOn("CTEST_USE_LAUNCHERS") && !this->State->GetGlobalProperty("RULE_LAUNCH_COMPILE")) { - cmSystemTools::Error( - "CTEST_USE_LAUNCHERS is enabled, but the " - "RULE_LAUNCH_COMPILE global property is not defined.\n" - "Did you forget to include(CTest) in the toplevel " - "CMakeLists.txt ?"); + this->IssueMessage(MessageType::FATAL_ERROR, + "CTEST_USE_LAUNCHERS is enabled, but the " + "RULE_LAUNCH_COMPILE global property is not defined.\n" + "Did you forget to include(CTest) in the toplevel " + "CMakeLists.txt ?"); } // Setup launchers for instrumentation #if !defined(CMAKE_BOOTSTRAP) -- cgit v0.12