mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 17:19:05 -05:00
Merge topic 'avoid-remove-empty-path'
71ded12a75 cmGeneratedFileStream: Do not remove empty path
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7223
This commit is contained in:
@@ -180,7 +180,9 @@ bool cmGeneratedFileStreamBase::Close()
|
||||
// Else, the destination was not replaced.
|
||||
//
|
||||
// Always delete the temporary file. We never want it to stay around.
|
||||
cmSystemTools::RemoveFile(this->TempName);
|
||||
if (!this->TempName.empty()) {
|
||||
cmSystemTools::RemoveFile(this->TempName);
|
||||
}
|
||||
|
||||
return replaced;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user