summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Tan <tanliboy@gmail.com>2023-11-30 13:44:11 -0800
committerGitHub <noreply@github.com>2023-11-30 23:44:11 +0200
commitf7f9e06212d44530b3200033286049dbdf84b3d3 (patch)
tree696e3f38935171612444d5d4708d7d8f5e66b624
parent74daabae6927b99e7333d6126dee35193c418457 (diff)
cmake : fix the metal file foder path (#4217)
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3e000941..6f35a25d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -165,7 +165,7 @@ if (LLAMA_METAL)
#add_compile_definitions(GGML_METAL_DIR_KERNELS="${CMAKE_CURRENT_SOURCE_DIR}/")
# copy ggml-metal.metal to bin directory
- configure_file(ggml-metal.metal bin/ggml-metal.metal COPYONLY)
+ configure_file(ggml-metal.metal ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ggml-metal.metal COPYONLY)
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS}
${FOUNDATION_LIBRARY}