summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmEnableTestingCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmEnableTestingCommand.cxx b/Source/cmEnableTestingCommand.cxx
index 1f42c5f..305a518 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)