diff --git a/Source/cmEnableTestingCommand.cxx b/Source/cmEnableTestingCommand.cxx index 1f42c5fb7..305a518c2 100644 --- a/Source/cmEnableTestingCommand.cxx +++ b/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)