|
@@ -274,10 +274,13 @@ function(ggml_add_backend_library backend)
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
# Set versioning properties for all backend libraries
|
|
# Set versioning properties for all backend libraries
|
|
|
- set_target_properties(${backend} PROPERTIES
|
|
|
|
|
- VERSION ${GGML_VERSION}
|
|
|
|
|
- SOVERSION ${GGML_VERSION_MAJOR}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ # Building a MODULE library with a version is not supported on macOS (https://gitlab.kitware.com/cmake/cmake/-/issues/20782)
|
|
|
|
|
+ if (NOT (APPLE AND GGML_BACKEND_DL))
|
|
|
|
|
+ set_target_properties(${backend} PROPERTIES
|
|
|
|
|
+ VERSION ${GGML_VERSION}
|
|
|
|
|
+ SOVERSION ${GGML_VERSION_MAJOR}
|
|
|
|
|
+ )
|
|
|
|
|
+ endif()
|
|
|
|
|
|
|
|
if(NOT GGML_AVAILABLE_BACKENDS)
|
|
if(NOT GGML_AVAILABLE_BACKENDS)
|
|
|
set(GGML_AVAILABLE_BACKENDS "${backend}"
|
|
set(GGML_AVAILABLE_BACKENDS "${backend}"
|