diff options
author | Brad King <brad.king@kitware.com> | 2012-04-26 12:18:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-04-26 12:20:58 (GMT) |
commit | 953257ca611526c9a161a22e5148802be1c67649 (patch) | |
tree | 3d73e0c5297beeefc9e07267e7ffc5dadc75232a /Source/cmCoreTryCompile.cxx | |
parent | a7d0fb1470cc7c900abfff14a87039d353a8c2b3 (diff) | |
download | CMake-953257ca611526c9a161a22e5148802be1c67649.zip CMake-953257ca611526c9a161a22e5148802be1c67649.tar.gz CMake-953257ca611526c9a161a22e5148802be1c67649.tar.bz2 |
try_compile: Cleanup temporary directories (#13160)
Since commit 4fbdce2b (try_compile: Use random executable file name,
2012-02-13) a different <target>.dir is used for each try-compile.
Cleanup the directories as well as their content to avoid accumulating
leftover temporary directories.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index 48f644b..ed485e3 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 { |