| 926 | } |
| 927 | |
| 928 | bool is_root_path(const std::string &path) { |
| 929 | const auto toml_path = fs::path(path) / "cmake.toml"; |
| 930 | if (!fs::exists(toml_path)) { |
| 931 | return false; |
| 932 | } |
| 933 | const auto toml = toml::parse<toml::discard_comments, tsl::ordered_map, std::vector>(toml_path.string()); |
| 934 | return toml.contains("project"); |
| 935 | } |
| 936 | |
| 937 | } // namespace parser |
| 938 | } // namespace cmkr |
no test coverage detected