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.

This commit is contained in:
Brad King 2001-06-07 12:22:16 -04:00
parent 4c4184f56c
commit 5b4a11af80
1 changed files with 2 additions and 0 deletions

View File

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