Skip to content

Commit

Permalink
cmake : add library versioning (ggerganov#1352)
Browse files Browse the repository at this point in the history
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
  • Loading branch information
2 people authored and iThalay committed Sep 23, 2024
1 parent b88c30a commit 6337b73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cmake_minimum_required (VERSION 3.5)

project(whisper.cpp VERSION 1.5.4)
set(SOVERSION 1)

# Add path to modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
Expand Down Expand Up @@ -542,6 +543,12 @@ add_library(${TARGET}
whisper.cpp
)

# Set the version numbers
set_target_properties(whisper PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${SOVERSION}
)

include(DefaultTargetOptions)

target_include_directories(${TARGET} PUBLIC
Expand Down

0 comments on commit 6337b73

Please sign in to comment.