We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-DGGML_BACKEND_DL=ON
1 parent 5a6241f commit fa04659Copy full SHA for fa04659
ggml/src/CMakeLists.txt
@@ -274,10 +274,13 @@ function(ggml_add_backend_library backend)
274
endif()
275
276
# Set versioning properties for all backend libraries
277
- set_target_properties(${backend} PROPERTIES
278
- VERSION ${GGML_VERSION}
279
- SOVERSION ${GGML_VERSION_MAJOR}
280
- )
+ # 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}
281
+ SOVERSION ${GGML_VERSION_MAJOR}
282
+ )
283
+ endif()
284
285
if(NOT GGML_AVAILABLE_BACKENDS)
286
set(GGML_AVAILABLE_BACKENDS "${backend}"
0 commit comments