Skip to content

Commit 264e4ac

Browse files
committed
Fix bug checking the root path of subdirectories
1 parent b6ab584 commit 264e4ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmake_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ int generate_cmake(const char *path, bool root) {
906906
fs::path subpath;
907907
for (const auto &p : sub) {
908908
subpath /= p;
909-
if (parser::is_root_path(subpath.string())) {
909+
if (parser::is_root_path((path / subpath).string())) {
910910
return;
911911
}
912912
}

0 commit comments

Comments
 (0)