diff options
author | Brad King <brad.king@kitware.com> | 2020-06-19 12:13:19 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-06-19 12:14:05 (GMT) |
commit | 43e8db481b0c507ec9bf209fc229fa9be7aba2e0 (patch) | |
tree | ac0bebd7b233d6d0c92bdaca2c9affa5f007f534 /Source/cmCoreTryCompile.cxx | |
parent | 5c550b796d895a7d0b244c18aff4b797ae20c25e (diff) | |
parent | a9a258c3027b02121e989e98ab134f9f518938d2 (diff) | |
download | CMake-43e8db481b0c507ec9bf209fc229fa9be7aba2e0.zip CMake-43e8db481b0c507ec9bf209fc229fa9be7aba2e0.tar.gz CMake-43e8db481b0c507ec9bf209fc229fa9be7aba2e0.tar.bz2 |
Merge topic 'try_compile-nfs'
a9a258c302 try_compile: Do not try to remove '.nfs*' files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard <robert.maynard@kitware.com>
Acked-by: Axel Huebl <axel.huebl@plasma.ninja>
Merge-request: !4913
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index 0aa5da0..677bc0f 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -956,7 +956,9 @@ void cmCoreTryCompile::CleanupFiles(std::string const& binDir) std::set<std::string> deletedFiles; for (unsigned long i = 0; i < dir.GetNumberOfFiles(); ++i) { const char* fileName = dir.GetFile(i); - if (strcmp(fileName, ".") != 0 && strcmp(fileName, "..") != 0) { + if (strcmp(fileName, ".") != 0 && strcmp(fileName, "..") != 0 && + // Do not delete NFS temporary files. + !cmHasPrefix(fileName, ".nfs")) { if (deletedFiles.insert(fileName).second) { std::string const fullPath = std::string(binDir).append("/").append(fileName); |