Fix bug checking the root path of subdirectories

toml-checker archive_264e4ace
Duncan Ogilvie 3 years ago
parent b6ab584a1a
commit 264e4ace18

@ -906,7 +906,7 @@ int generate_cmake(const char *path, bool root) {
fs::path subpath;
for (const auto &p : sub) {
subpath /= p;
if (parser::is_root_path(subpath.string())) {
if (parser::is_root_path((path / subpath).string())) {
return;
}
}

Loading…
Cancel
Save