File tree Expand file tree Collapse file tree 2 files changed +16
-20
lines changed Expand file tree Collapse file tree 2 files changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -257,26 +257,6 @@ set_target_properties(ggml PROPERTIES PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}")
257
257
install (TARGETS ggml LIBRARY PUBLIC_HEADER )
258
258
install (TARGETS ggml-base LIBRARY )
259
259
260
- # FIXME: this should be done in the backend cmake files
261
- if (GGML_METAL )
262
- # FIXME: does this need to be installed with GGML_METAL_EMBED_LIBRARY?
263
- install (
264
- FILES src/ggml-metal/ggml-metal.metal
265
- PERMISSIONS
266
- OWNER_READ
267
- OWNER_WRITE
268
- GROUP_READ
269
- WORLD_READ
270
- DESTINATION ${CMAKE_INSTALL_BINDIR} )
271
-
272
- if (NOT GGML_METAL_EMBED_LIBRARY )
273
- install (
274
- FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /default.metallib
275
- DESTINATION ${CMAKE_INSTALL_BINDIR}
276
- )
277
- endif ()
278
- endif ()
279
-
280
260
if (GGML_STANDALONE )
281
261
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /ggml.pc.in
282
262
${CMAKE_CURRENT_BINARY_DIR} /ggml.pc
Original file line number Diff line number Diff line change @@ -103,3 +103,19 @@ else()
103
103
DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /default.metallib
104
104
)
105
105
endif () # GGML_METAL_EMBED_LIBRARY
106
+
107
+ if (NOT GGML_METAL_EMBED_LIBRARY )
108
+ install (
109
+ FILES src/ggml-metal/ggml-metal.metal
110
+ PERMISSIONS
111
+ OWNER_READ
112
+ OWNER_WRITE
113
+ GROUP_READ
114
+ WORLD_READ
115
+ DESTINATION ${CMAKE_INSTALL_BINDIR} )
116
+
117
+ install (
118
+ FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /default.metallib
119
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
120
+ )
121
+ endif ()
You can’t perform that action at this time.
0 commit comments