• Nhan Nguyen's avatar
    fix: define GGML_VERSION variables for proper SOVERSION expansion (#13469) · aacd1cb3
    Nhan Nguyen authored
    The ggml/src/CMakeLists.txt uses GGML_VERSION_MAJOR for the shared
    library SOVERSION property, but these variables were not defined when
    building from ollama's CMakeLists.txt.
    
    This caused libggml-base.so to be named with a literal "SOVERSION"
    suffix (libggml-base.so.SOVERSION) instead of the actual version
    number (libggml-base.so.0).
    
    The fix adds the required GGML_VERSION_* variables before including
    the ggml subdirectory.
    
    Fixes #13436
    aacd1cb3
CMakeLists.txt 5.79 KB