Skip to content

Commit f7f9e06

Browse files
authored
cmake : fix the metal file foder path (#4217)
1 parent 74daaba commit f7f9e06

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
@@ -165,7 +165,7 @@ if (LLAMA_METAL)
165165
#add_compile_definitions(GGML_METAL_DIR_KERNELS="${CMAKE_CURRENT_SOURCE_DIR}/")
166166

167167
# copy ggml-metal.metal to bin directory
168-
configure_file(ggml-metal.metal bin/ggml-metal.metal COPYONLY)
168+
configure_file(ggml-metal.metal ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ggml-metal.metal COPYONLY)
169169

170170
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS}
171171
${FOUNDATION_LIBRARY}

0 commit comments

Comments
 (0)