From 5b4a11af80d27649ef191f918e92c3e41779e987 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 7 Jun 2001 12:22:16 -0400 Subject: [PATCH] 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. --- Source/cmEnableTestingCommand.cxx | 2 ++ 1 file changed, 2 insertions(+) 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)