diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a308b4..e7a2418 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,3 +168,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $ ${PLATFORM_BINARY_DIR}/$ COMMENT "Copying to bin folder" ) + +# copy ggml-metal.metal +if (PLATFORM STREQUAL "darwin") + add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_INSTALL_BINDIR}/ggml-metal.metal ${PLATFORM_BINARY_DIR}/ggml-metal.metal + COMMENT "Copying ggml-metal.metal to bin folder" + ) +endif()