mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-03 18:48:19 +00:00
cmake: fix LLAMA_DIR use before set
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
e60b388a2e
commit
eb1081d37e
@ -160,6 +160,7 @@ if (LLAMA_OPENBLAS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (LLAMA_KOMPUTE)
|
if (LLAMA_KOMPUTE)
|
||||||
|
set(LLAMA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/llama.cpp-mainline)
|
||||||
if (NOT EXISTS "${LLAMA_DIR}/kompute/CMakeLists.txt")
|
if (NOT EXISTS "${LLAMA_DIR}/kompute/CMakeLists.txt")
|
||||||
message(FATAL_ERROR "Kompute not found")
|
message(FATAL_ERROR "Kompute not found")
|
||||||
endif()
|
endif()
|
||||||
@ -172,8 +173,6 @@ if (LLAMA_KOMPUTE)
|
|||||||
message(FATAL_ERROR "glslc not found")
|
message(FATAL_ERROR "glslc not found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(LLAMA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/llama.cpp-mainline)
|
|
||||||
|
|
||||||
function(compile_shader)
|
function(compile_shader)
|
||||||
set(options)
|
set(options)
|
||||||
set(oneValueArgs)
|
set(oneValueArgs)
|
||||||
|
Loading…
Reference in New Issue
Block a user