ソースを参照

launchers: issue a message when rules are not defined

Daniel Pfeifer 8 ヶ月 前
コミット
7d2a6bc67d
1 ファイル変更5 行追加5 行削除
  1. 5 5
      Source/cmake.cxx

+ 5 - 5
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)