mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user