ggml-quants.h
gguf.cpp)
+set_target_properties(ggml-base PROPERTIES
+ VERSION ${GGML_VERSION}
+ SOVERSION ${GGML_VERSION_MAJOR}
+)
+
target_include_directories(ggml-base PRIVATE .)
if (GGML_BACKEND_DL)
target_compile_definitions(ggml-base PUBLIC GGML_BACKEND_DL)
ggml-backend-reg.cpp)
add_library(ggml::ggml ALIAS ggml)
+set_target_properties(ggml PROPERTIES
+ VERSION ${GGML_VERSION}
+ SOVERSION ${GGML_VERSION_MAJOR}
+)
+
if (GGML_BACKEND_DIR)
if (NOT GGML_BACKEND_DL)
message(FATAL_ERROR "GGML_BACKEND_DIR requires GGML_BACKEND_DL")
target_compile_definitions(${backend} PUBLIC GGML_BACKEND_SHARED)
endif()
+ # Set versioning properties for all backend libraries
+ set_target_properties(${backend} PROPERTIES
+ VERSION ${GGML_VERSION}
+ SOVERSION ${GGML_VERSION_MAJOR}
+ )
+
if(NOT GGML_AVAILABLE_BACKENDS)
set(GGML_AVAILABLE_BACKENDS "${backend}"
CACHE INTERNAL "List of backends for cmake package")