| 287 | } |
| 288 | |
| 289 | bool InfoWriter::Save(std::string const& filename) |
| 290 | { |
| 291 | cmGeneratedFileStream fileStream; |
| 292 | fileStream.SetCopyIfDifferent(true); |
| 293 | fileStream.Open(filename, false, true); |
| 294 | if (!fileStream) { |
| 295 | return false; |
| 296 | } |
| 297 | |
| 298 | Json::StyledStreamWriter jsonWriter; |
| 299 | try { |
| 300 | jsonWriter.write(fileStream, this->Value_); |
| 301 | } catch (...) { |
| 302 | return false; |
| 303 | } |
| 304 | |
| 305 | return fileStream.Close(); |
| 306 | } |
| 307 | |
| 308 | cmQtAutoGen::ConfigStrings<std::vector<std::string>> generateListOptions( |
| 309 | cmQtAutoGen::ConfigStrings<cmQtAutoGen::CompilerFeaturesHandle> const& |
no test coverage detected