authorgravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-11 08:16:27-07:00
committergravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-12 12:01:44-07:00
log50a6dc8496c7c4ccb1ac30ad53da524dd3161c15
tree2407312e163ea76144e54f5c72a54deea68122c5
parent350a88ddf4869d35391b6bb985f41a21931795b7

build.zig: Parse CMAKE_PREFIX_PATH with multiple entries

CMAKE_PREFIX_PATH is a semicolon separated list.

1 files changed, 4 insertions(+), 1 deletions(-)

build.zig+4-1
......@@ -339,7 +339,10 @@ pub fn build(b: *Builder) !void {
339339 // That means we also have to rely on stage1 compiled c++ files. We parse config.h to find
340340 // the information passed on to us from cmake.
341341 if (cfg.cmake_prefix_path.len > 0) {
342 b.addSearchPrefix(cfg.cmake_prefix_path);
342 var it = mem.tokenize(u8, cfg.cmake_prefix_path, ";");
343 while (it.next()) |path| {
344 b.addSearchPrefix(path);
345 }
343346 }
344347
345348 try addCmakeCfgOptionsToExe(b, cfg, exe, use_zig_libcxx);