windows: init cmakeTargets in init_vars

This commit is contained in:
jmorganca 2024-04-26 17:56:46 -04:00
parent 11d83386a5
commit 858a9bac59

View File

@ -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"