ggml: fix: macOS build with `-DGGML_BACKEND_DL=ON` (#17581)
This commit is contained in:
parent
5a6241feb0
commit
fa0465954f
|
|
@ -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
|
# Building a MODULE library with a version is not supported on macOS (https://gitlab.kitware.com/cmake/cmake/-/issues/20782)
|
||||||
VERSION ${GGML_VERSION}
|
if (NOT (APPLE AND GGML_BACKEND_DL))
|
||||||
SOVERSION ${GGML_VERSION_MAJOR}
|
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}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue