| 1042 | } |
| 1043 | |
| 1044 | bool cmCMakePresetsGraph::ReadProjectPresets(std::string const& sourceDir, |
| 1045 | bool allowNoFiles) |
| 1046 | { |
| 1047 | this->SourceDir = sourceDir; |
| 1048 | this->ClearPresets(); |
| 1049 | |
| 1050 | if (!this->ReadProjectPresetsInternal(allowNoFiles)) { |
| 1051 | this->ClearPresets(); |
| 1052 | return false; |
| 1053 | } |
| 1054 | |
| 1055 | return true; |
| 1056 | } |
| 1057 | |
| 1058 | bool cmCMakePresetsGraph::ReadProjectPresetsInternal(bool allowNoFiles) |
| 1059 | { |