summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilad S <giladgd@users.noreply.github.com>2024-03-11 10:00:08 +0200
committerGitHub <noreply@github.com>2024-03-11 10:00:08 +0200
commitecab1c75de68de7c41c254e2ae170d3b07bee6d4 (patch)
tree15818167f7d00708786b01c090d1312c228203a0
parentee35600b9061b1ea0c4ea87fce6844297632b2a8 (diff)
cmake : fix subdir for `LLAMA_METAL_EMBED_LIBRARY` (#5985)
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 00a26391..60b592bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -208,7 +208,7 @@ if (LLAMA_METAL)
enable_language(ASM)
add_compile_definitions(GGML_METAL_EMBED_LIBRARY)
- set(METALLIB_SOURCE "${CMAKE_SOURCE_DIR}/ggml-metal.metal")
+ set(METALLIB_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/ggml-metal.metal")
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/autogenerated")
set(EMBED_METALLIB_ASSEMBLY "${CMAKE_BINARY_DIR}/autogenerated/ggml-embed-metallib.s")