diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-06 03:26:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-06 03:26:55 (GMT) |
commit | 62b612fbf841fd8d1d4e293ad84d933133543860 (patch) | |
tree | 9f5e585824494932ec2dc85946e3a00446a38d88 /Source/cmTryCompileCommand.cxx | |
parent | 9676bb4b22687e1265adc13647c078991d3b4c85 (diff) | |
download | CMake-62b612fbf841fd8d1d4e293ad84d933133543860.zip CMake-62b612fbf841fd8d1d4e293ad84d933133543860.tar.gz CMake-62b612fbf841fd8d1d4e293ad84d933133543860.tar.bz2 |
add better testing for unlink
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index 9a0a6ac..e2848da 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -280,7 +280,12 @@ void cmTryCompileCommand::CleanupFiles(const char* binDir) } else { - cmSystemTools::RemoveFile(fullPath.c_str()); + if(!cmSystemTools::RemoveFile(fullPath.c_str())) + { + std::string m = "Remove failed on file: "; + m += fullPath; + cmSystemTools::ReportLastSystemError(m.c_str()); + } } } } |