| 15 | #endif |
| 16 | |
| 17 | cmGeneratedFileStream::cmGeneratedFileStream(Encoding encoding) |
| 18 | { |
| 19 | #ifndef CMAKE_BOOTSTRAP |
| 20 | if (encoding != codecvt_Encoding::None) { |
| 21 | this->imbue(std::locale(this->getloc(), new codecvt(encoding))); |
| 22 | } |
| 23 | #else |
| 24 | static_cast<void>(encoding); |
| 25 | #endif |
| 26 | } |
| 27 | |
| 28 | cmGeneratedFileStream::cmGeneratedFileStream(std::string const& name, |
| 29 | bool quiet, Encoding encoding) |