فهرست منبع

ctest_config: pass -S, -B args for log clarity

Fixes: #24135
Michael Hirsch 3 سال پیش
والد
کامیت
8a16a727f8
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      Source/CTest/cmCTestConfigureCommand.cxx

+ 6 - 1
Source/CTest/cmCTestConfigureCommand.cxx

@@ -122,10 +122,15 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
         cmakeConfigureCommand += "\"";
       }
 
-      cmakeConfigureCommand += " \"";
+      cmakeConfigureCommand += " \"-S";
       cmakeConfigureCommand += source_dir;
       cmakeConfigureCommand += "\"";
 
+      cmakeConfigureCommand += " \"-B";
+      cmakeConfigureCommand +=
+        this->CTest->GetCTestConfiguration("BuildDirectory");
+      cmakeConfigureCommand += "\"";
+
       this->CTest->SetCTestConfiguration("ConfigureCommand",
                                          cmakeConfigureCommand, this->Quiet);
     } else {