Skip to content

Commit

Permalink
cmake : add library versioning (#1352)
Browse files Browse the repository at this point in the history
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
  • Loading branch information
kenneth-ge and ggerganov authored Mar 4, 2024
1 parent c713eb5 commit ccd7c1d
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 ccd7c1d

Please sign in to comment.