launchers: issue a message when rules are not defined

This commit is contained in:
Daniel Pfeifer 2025-01-31 14:03:29 +01:00
parent f0cc688c10
commit 7d2a6bc67d
No known key found for this signature in database
GPG Key ID: 04F22A9DE0B13A16

View File

@ -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)