Commit 28957f7f authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'avoid-remove-empty-path' into release-3.23

71ded12a

 cmGeneratedFileStream: Do not remove empty path
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: buildbot's avatarbuildbot <buildbot@kitware.com>
Merge-request: !7223
parents 4a215d29 71ded12a
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment