Skip to content

Commit

Permalink
fix: fix missing file for Metal
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed May 3, 2024
1 parent 6a7ed61 commit 03571c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,11 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${PROJECT_NAME}> ${PLATFORM_BINARY_DIR}/$<TARGET_FILE_NAME:${PROJECT_NAME}>
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()

0 comments on commit 03571c7

Please sign in to comment.