Skip to content

Commit 92a41ec

Browse files
committed
samples common: fix cgltf paths
1 parent 24527b3 commit 92a41ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/common/build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ pub fn link(compile_step: *std.Build.Step.Compile, deps: struct {
4343

4444
lib.addIncludePath(zmesh.path("libs/cgltf"));
4545
lib.addCSourceFile(.{
46-
.file = b.path("libs/zmesh/libs/cgltf/cgltf.c"),
46+
.file = zmesh.path("libs/cgltf/cgltf.c"),
4747
.flags = &.{"-std=c99"},
4848
});
4949

5050
lib.addIncludePath(b.path("samples/common/libs"));
51-
lib.addIncludePath(b.path(zmesh.path("libs/cgltf")));
51+
lib.addIncludePath(zmesh.path("libs/cgltf"));
5252

5353
const module = b.createModule(.{
5454
.root_source_file = b.path("samples/common/src/common.zig"),
@@ -58,7 +58,7 @@ pub fn link(compile_step: *std.Build.Step.Compile, deps: struct {
5858
},
5959
});
6060
module.addIncludePath(b.path("samples/common/libs/imgui"));
61-
module.addIncludePath(b.path(zmesh.path("libs/cgltf")));
61+
module.addIncludePath(zmesh.path("libs/cgltf"));
6262

6363
compile_step.root_module.addImport("common", module);
6464

0 commit comments

Comments
 (0)