Fix building as subproject

This commit is contained in:
Not-Nik 2023-08-11 17:06:26 +02:00
parent 566a2860c7
commit 16fe333220
Failed to generate hash of commit
2 changed files with 20 additions and 7 deletions

View file

@ -16,8 +16,8 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
var raylib = rl.getModule(b);
var raylib_math = rl.math.getModule(b);
var raylib = rl.getModule(b, "raylib-zig");
var raylib_math = rl.math.getModule(b, "raylib-zig");
const exe = b.addExecutable(.{ .name = "'$PROJECT_NAME'", .root_source_file = .{ .path = "src/main.zig" }, .optimize = optimize, .target = target });