fix for in source testing

This commit is contained in:
Ken Martin 2004-05-05 11:41:18 -04:00
parent d8ae50b87c
commit 6e17e798f5
1 changed files with 2 additions and 2 deletions

View File

@ -3622,8 +3622,8 @@ int cmCTest::RunConfigurationScript(const std::string& total_script_arg)
}
}
// make sure the binary directory exists
if (!cmSystemTools::FileExists(binDir))
// make sure the binary directory exists if it isn;t the srcdir
if (!cmSystemTools::FileExists(binDir) && strcmp(srcDir, binDir))
{
if (!cmSystemTools::MakeDirectory(binDir))
{