cmake : update semver handling to be consistent with ggml/llama.cpp

This commit modifies the semantic version handling to be consistent with
how llama.cpp and ggml handle semver.

This commit introdues a new example named test-cmake which is intended
to be used to test the cmake configuration and installation.
This commit is contained in:
Daniel Bevenius
2026-08-18 15:34:48 +02:00
parent 4834a2327d
commit b6e63fa4ac
14 changed files with 143 additions and 26 deletions
+6 -4
View File
@@ -121,13 +121,15 @@ target_link_libraries(parakeet PUBLIC ggml Threads::Threads)
# Set the version numbers
set_target_properties(whisper PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${SOVERSION}
VERSION ${WHISPER_VERSION_BASE}
SOVERSION ${WHISPER_VERSION_MAJOR}
MACHO_CURRENT_VERSION 0 # keep macOS linker from seeing oversized version number
)
set_target_properties(parakeet PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${SOVERSION}
VERSION ${WHISPER_VERSION_BASE}
SOVERSION ${WHISPER_VERSION_MAJOR}
MACHO_CURRENT_VERSION 0 # keep macOS linker from seeing oversized version number
)
target_include_directories(whisper PUBLIC . ../include)