Skip to content

Commit ecab1c7

Browse files
authored
cmake : fix subdir for LLAMA_METAL_EMBED_LIBRARY (#5985)
1 parent ee35600 commit ecab1c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ if (LLAMA_METAL)
208208
enable_language(ASM)
209209
add_compile_definitions(GGML_METAL_EMBED_LIBRARY)
210210

211-
set(METALLIB_SOURCE "${CMAKE_SOURCE_DIR}/ggml-metal.metal")
211+
set(METALLIB_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/ggml-metal.metal")
212212
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/autogenerated")
213213
set(EMBED_METALLIB_ASSEMBLY "${CMAKE_BINARY_DIR}/autogenerated/ggml-embed-metallib.s")
214214

0 commit comments

Comments
 (0)