From 858a9bac59221ceea6925f73042f1de34eb78575 Mon Sep 17 00:00:00 2001 From: jmorganca Date: Fri, 26 Apr 2024 17:56:46 -0400 Subject: [PATCH] windows: init `cmakeTargets` in `init_vars` --- llm/generate/gen_windows.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llm/generate/gen_windows.ps1 b/llm/generate/gen_windows.ps1 index 6f26fb1c..ce68910e 100644 --- a/llm/generate/gen_windows.ps1 +++ b/llm/generate/gen_windows.ps1 @@ -26,8 +26,6 @@ function amdGPUs { $GPU_LIST -join ';' } -$script:cmakeTargets = @("ollama_llama_server") - function init_vars { if (!$script:SRC_DIR) { $script:SRC_DIR = $(resolve-path "..\..\") @@ -35,6 +33,8 @@ function init_vars { if (!$script:llamacppDir) { $script:llamacppDir = "../llama.cpp" } + + $script:cmakeTargets = @("ollama_llama_server") $script:cmakeDefs = @( "-DBUILD_SHARED_LIBS=on", "-DLLAMA_NATIVE=off"