Merge topic 'use-launchers'

7d2a6bc67d launchers: issue a message when rules are not defined

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10268
This commit is contained in:
Brad King
2025-02-01 12:17:39 +00:00
committed by Kitware Robot

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)