summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCTest.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 377e688..888dec8 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -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))
{