Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa04659

Browse files
authored
ggml: fix: macOS build with-DGGML_BACKEND_DL=ON (#17581)
1 parent5a6241f commitfa04659

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎ggml/src/CMakeLists.txt‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,13 @@ function(ggml_add_backend_library backend)
274274
endif()
275275

276276
# Set versioning properties for all backend libraries
277-
set_target_properties(${backend} PROPERTIES
278-
VERSION${GGML_VERSION}
279-
SOVERSION${GGML_VERSION_MAJOR}
280-
)
277+
# Building a MODULE library with a version is not supported on macOS (https://gitlab.kitware.com/cmake/cmake/-/issues/20782)
278+
if (NOT (APPLEAND GGML_BACKEND_DL))
279+
set_target_properties(${backend} PROPERTIES
280+
VERSION${GGML_VERSION}
281+
SOVERSION${GGML_VERSION_MAJOR}
282+
)
283+
endif()
281284

282285
if(NOT GGML_AVAILABLE_BACKENDS)
283286
set(GGML_AVAILABLE_BACKENDS"${backend}"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp