Browse Source

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 years ago
parent
commit
5b4a11af80
1 changed files with 2 additions and 0 deletions
  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)