File tree Expand file tree Collapse file tree 15 files changed +6
-70
lines changed Expand file tree Collapse file tree 15 files changed +6
-70
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,12 @@ function(ggml_add_backend_library backend)
269269 target_compile_definitions (${backend} PUBLIC GGML_BACKEND_SHARED)
270270 endif ()
271271
272+ # Set versioning properties for all backend libraries
273+ set_target_properties (${backend} PROPERTIES
274+ VERSION ${GGML_VERSION}
275+ SOVERSION ${GGML_VERSION_MAJOR}
276+ )
277+
272278 if (NOT GGML_AVAILABLE_BACKENDS)
273279 set (GGML_AVAILABLE_BACKENDS "${backend} "
274280 CACHE INTERNAL "List of backends for cmake package" )
Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ if (BLAS_FOUND)
1515 ggml-blas.cpp
1616 )
1717
18- set_target_properties (ggml-blas PROPERTIES
19- VERSION ${GGML_VERSION}
20- SOVERSION ${GGML_VERSION_MAJOR}
21- )
22-
2318 if (${GGML_BLAS_VENDOR} MATCHES "Apple" )
2419 add_compile_definitions (ACCELERATE_NEW_LAPACK)
2520 add_compile_definitions (ACCELERATE_LAPACK_ILP64)
Original file line number Diff line number Diff line change @@ -70,11 +70,6 @@ if (CANN_INSTALL_DIR)
7070
7171 ggml_add_backend_library(ggml-cann ${GGML_SOURCES_CANN} )
7272
73- set_target_properties (ggml-cann PROPERTIES
74- VERSION ${GGML_VERSION}
75- SOVERSION ${GGML_VERSION_MAJOR}
76- )
77-
7873 target_link_libraries (ggml-cann PRIVATE ${CANN_LIBRARIES} )
7974 target_include_directories (ggml-cann PRIVATE ${CANN_INCLUDE_DIRS} )
8075 target_link_directories (ggml-cann PRIVATE ${CANN_INSTALL_DIR} /lib64)
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
2121
2222 ggml_add_backend_library(${GGML_CPU_NAME} )
2323
24- set_target_properties (${GGML_CPU_NAME} PROPERTIES
25- VERSION ${GGML_VERSION}
26- SOVERSION ${GGML_VERSION_MAJOR}
27- )
28-
2924 list (APPEND GGML_CPU_SOURCES
3025 ggml-cpu/ggml-cpu.c
3126 ggml-cpu/ggml-cpu.cpp
Original file line number Diff line number Diff line change @@ -71,11 +71,6 @@ if (CUDAToolkit_FOUND)
7171 ${GGML_SOURCES_CUDA}
7272 )
7373
74- set_target_properties (ggml-cuda PROPERTIES
75- VERSION ${GGML_VERSION}
76- SOVERSION ${GGML_VERSION_MAJOR}
77- )
78-
7974 add_compile_definitions (GGML_CUDA_PEER_MAX_BATCH_SIZE=${GGML_CUDA_PEER_MAX_BATCH_SIZE} )
8075
8176 if (GGML_CUDA_GRAPHS)
Original file line number Diff line number Diff line change @@ -31,11 +31,6 @@ set(TARGET_NAME ggml-hexagon)
3131ggml_add_backend_library(${TARGET_NAME}
3232 ggml-hexagon.cpp htp-utils.c htp-utils.h ../../include /ggml-hexagon.h)
3333
34- set_target_properties (${TARGET_NAME} PROPERTIES
35- VERSION ${GGML_VERSION}
36- SOVERSION ${GGML_VERSION_MAJOR}
37- )
38-
3934target_link_libraries (${TARGET_NAME} PRIVATE htp_iface)
4035target_include_directories (${TARGET_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /htp ${CMAKE_CURRENT_BINARY_DIR} )
4136
Original file line number Diff line number Diff line change @@ -81,11 +81,6 @@ ggml_add_backend_library(ggml-hip
8181 ${GGML_SOURCES_ROCM}
8282 )
8383
84- set_target_properties (ggml-hip PROPERTIES
85- VERSION ${GGML_VERSION}
86- SOVERSION ${GGML_VERSION_MAJOR}
87- )
88-
8984# TODO: do not use CUDA definitions for HIP
9085if (NOT GGML_BACKEND_DL)
9186 target_compile_definitions (ggml PUBLIC GGML_USE_CUDA)
Original file line number Diff line number Diff line change @@ -13,11 +13,6 @@ ggml_add_backend_library(ggml-metal
1313 ggml-metal-ops.cpp
1414 )
1515
16- set_target_properties (ggml-metal PROPERTIES
17- VERSION ${GGML_VERSION}
18- SOVERSION ${GGML_VERSION_MAJOR}
19- )
20-
2116target_link_libraries (ggml-metal PRIVATE
2217 ${FOUNDATION_LIBRARY}
2318 ${METAL_FRAMEWORK}
Original file line number Diff line number Diff line change @@ -70,11 +70,6 @@ if (MUSAToolkit_FOUND)
7070 ${GGML_SOURCES_MUSA}
7171 )
7272
73- set_target_properties (ggml-musa PROPERTIES
74- VERSION ${GGML_VERSION}
75- SOVERSION ${GGML_VERSION_MAJOR}
76- )
77-
7873 # TODO: do not use CUDA definitions for MUSA
7974 if (NOT GGML_BACKEND_DL)
8075 target_compile_definitions (ggml PUBLIC GGML_USE_CUDA)
Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ ggml_add_backend_library(${TARGET_NAME}
77 ggml-opencl.cpp
88 ../../include /ggml-opencl.h)
99
10- set_target_properties (${TARGET_NAME} PROPERTIES
11- VERSION ${GGML_VERSION}
12- SOVERSION ${GGML_VERSION_MAJOR}
13- )
14-
1510target_link_libraries (${TARGET_NAME} PRIVATE ${OpenCL_LIBRARIES} )
1611target_include_directories (${TARGET_NAME} PRIVATE ${OpenCL_INCLUDE_DIRS} )
1712
You can’t perform that action at this time.
0 commit comments