]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake: fix Mach-O current version number (#17877)
authorRhys-T <redacted>
Tue, 9 Dec 2025 11:17:41 +0000 (06:17 -0500)
committerGitHub <redacted>
Tue, 9 Dec 2025 11:17:41 +0000 (13:17 +0200)
PR #17091 set the VERSION of various libraries to 0.0.abcd, where abcd
is the LLAMA_BUILD_NUMBER. That build number is too large to fit in the
Mach-O 'current version' field's 'micro' part, which only goes up to
255. This just sets the Mach-O current version to 0 to get it building
properly again.

Fixes #17258.

src/CMakeLists.txt
tools/mtmd/CMakeLists.txt

index 84a0c2934e47bb5c9d7ad53d66bddbadc9dcbc38..4192af7c0c3b3f5b5948818540b9ee210c513ccb 100644 (file)
@@ -139,6 +139,7 @@ add_library(llama
 set_target_properties(llama PROPERTIES
     VERSION ${LLAMA_INSTALL_VERSION}
     SOVERSION 0
+    MACHO_CURRENT_VERSION 0 # keep macOS linker from seeing oversized version number
 )
 
 target_include_directories(llama PRIVATE .)
index f640ae2a6ea5fdf15dd71edb6bc8d58fa7366878..13ab7c78f4afceed0b0d950f51c5696e1dae9db4 100644 (file)
@@ -16,6 +16,7 @@ add_library(mtmd
 set_target_properties(mtmd PROPERTIES
     VERSION ${LLAMA_INSTALL_VERSION}
     SOVERSION 0
+    MACHO_CURRENT_VERSION 0 # keep macOS linker from seeing oversized version number
 )
 
 target_link_libraries     (mtmd PUBLIC ggml llama)