From 953257ca611526c9a161a22e5148802be1c67649 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 26 Apr 2012 08:18:51 -0400 Subject: [PATCH] try_compile: Cleanup temporary directories (#13160) Since commit 4fbdce2b (try_compile: Use random executable file name, 2012-02-13) a different .dir is used for each try-compile. Cleanup the directories as well as their content to avoid accumulating leftover temporary directories. --- Source/cmCoreTryCompile.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index 48f644b8d..ed485e351 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -404,6 +404,7 @@ void cmCoreTryCompile::CleanupFiles(const char* binDir) if(cmSystemTools::FileIsDirectory(fullPath.c_str())) { this->CleanupFiles(fullPath.c_str()); + cmSystemTools::RemoveADirectory(fullPath.c_str()); } else {