cmake: fix LLAMA_DIR use before set

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
pull/1957/head python-v2.2.1
Jared Van Bortel 4 months ago
parent e60b388a2e
commit eb1081d37e

@ -160,6 +160,7 @@ if (LLAMA_OPENBLAS)
endif()
if (LLAMA_KOMPUTE)
set(LLAMA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/llama.cpp-mainline)
if (NOT EXISTS "${LLAMA_DIR}/kompute/CMakeLists.txt")
message(FATAL_ERROR "Kompute not found")
endif()
@ -172,8 +173,6 @@ if (LLAMA_KOMPUTE)
message(FATAL_ERROR "glslc not found")
endif()
set(LLAMA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/llama.cpp-mainline)
function(compile_shader)
set(options)
set(oneValueArgs)

Loading…
Cancel
Save