mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 03:31:46 +00:00
ggml : do not install metal source when embed library (ggml/1054)
This commit is contained in:
parent
db68c93b57
commit
5e3b08d606
@ -252,26 +252,6 @@ set_target_properties(ggml PROPERTIES PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}")
|
|||||||
install(TARGETS ggml LIBRARY PUBLIC_HEADER)
|
install(TARGETS ggml LIBRARY PUBLIC_HEADER)
|
||||||
install(TARGETS ggml-base LIBRARY)
|
install(TARGETS ggml-base LIBRARY)
|
||||||
|
|
||||||
# FIXME: this should be done in the backend cmake files
|
|
||||||
if (GGML_METAL)
|
|
||||||
# FIXME: does this need to be installed with GGML_METAL_EMBED_LIBRARY?
|
|
||||||
install(
|
|
||||||
FILES src/ggml-metal/ggml-metal.metal
|
|
||||||
PERMISSIONS
|
|
||||||
OWNER_READ
|
|
||||||
OWNER_WRITE
|
|
||||||
GROUP_READ
|
|
||||||
WORLD_READ
|
|
||||||
DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
||||||
|
|
||||||
if (NOT GGML_METAL_EMBED_LIBRARY)
|
|
||||||
install(
|
|
||||||
FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/default.metallib
|
|
||||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (GGML_STANDALONE)
|
if (GGML_STANDALONE)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ggml.pc.in
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ggml.pc.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/ggml.pc
|
${CMAKE_CURRENT_BINARY_DIR}/ggml.pc
|
||||||
|
@ -103,3 +103,19 @@ else()
|
|||||||
DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/default.metallib
|
DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/default.metallib
|
||||||
)
|
)
|
||||||
endif() # GGML_METAL_EMBED_LIBRARY
|
endif() # GGML_METAL_EMBED_LIBRARY
|
||||||
|
|
||||||
|
if (NOT GGML_METAL_EMBED_LIBRARY)
|
||||||
|
install(
|
||||||
|
FILES src/ggml-metal/ggml-metal.metal
|
||||||
|
PERMISSIONS
|
||||||
|
OWNER_READ
|
||||||
|
OWNER_WRITE
|
||||||
|
GROUP_READ
|
||||||
|
WORLD_READ
|
||||||
|
DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/default.metallib
|
||||||
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user