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:
parent
4c4184f56c
commit
5b4a11af80
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue