فهرست منبع

BUG: ENABLE_TESTING command may need to create output directory before writing the CMakeTestfile into it since it is invoked before the makefile generator runs.

Brad King 24 سال پیش
والد
کامیت
5b4a11af80
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Source/cmEnableTestingCommand.cxx

+ 2 - 0
Source/cmEnableTestingCommand.cxx

@@ -51,6 +51,8 @@ void cmEnableTestingCommand::FinalPass()
   fname += "/";
   fname += "CMakeTestfile.txt";
   
+  cmSystemTools::MakeDirectory(m_Makefile->GetStartOutputDirectory());
+
   // Open the output Testfile
   std::ofstream fout(fname.c_str());
   if (!fout)