| 84 | } |
| 85 | |
| 86 | bool cmGeneratedFileStream::Close() |
| 87 | { |
| 88 | // Save whether the temporary output file is valid before closing. |
| 89 | this->Okay = !this->fail(); |
| 90 | |
| 91 | // Close the temporary output file. |
| 92 | this->Stream::close(); // NOLINT(cmake-use-cmsys-fstream) |
| 93 | |
| 94 | // Remove the temporary file (possibly by renaming to the real file). |
| 95 | return this->cmGeneratedFileStreamBase::Close(); |
| 96 | } |
| 97 | |
| 98 | void cmGeneratedFileStream::SetCopyIfDifferent(bool copy_if_different) |
| 99 | { |