fix for in source testing

This commit is contained in:
Ken Martin 2004-05-05 11:41:18 -04:00
parent d8ae50b87c
commit 6e17e798f5

View File

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