diff options
author | Brad King <brad.king@kitware.com> | 2001-06-07 16:22:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-06-07 16:22:16 (GMT) |
commit | 5b4a11af80d27649ef191f918e92c3e41779e987 (patch) | |
tree | 7ea8171f86cc0dc12ae8fb880cbcaf3286cc2eaa /Source/cmEnableTestingCommand.cxx | |
parent | 4c4184f56c32e26e9b6a283c0c8bf6a7a59efd79 (diff) | |
download | CMake-5b4a11af80d27649ef191f918e92c3e41779e987.zip CMake-5b4a11af80d27649ef191f918e92c3e41779e987.tar.gz CMake-5b4a11af80d27649ef191f918e92c3e41779e987.tar.bz2 |
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.
Diffstat (limited to 'Source/cmEnableTestingCommand.cxx')
-rw-r--r-- | Source/cmEnableTestingCommand.cxx | 2 |
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) |