Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ set (PACKAGE_BUGREPORT https://github.com/BYVoid/OpenCC/issues)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
include(GitVersion)

# C++ interface/layout changes after 1.3.1 require downstream C++ consumers
# such as librime to relink instead of loading an ABI-incompatible libopencc.
set (OPENCC_ABI_VERSION 1.4)

set(CPACK_SOURCE_PACKAGE_FILE_NAME
"${PACKAGE_NAME}-${OPENCC_VERSION_MAJOR}.${OPENCC_VERSION_MINOR}.${OPENCC_VERSION_REVISION}"
)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ set_target_properties(
VERSION
${OPENCC_VERSION_MAJOR}.${OPENCC_VERSION_MINOR}.${OPENCC_VERSION_REVISION}
SOVERSION
${OPENCC_VERSION_MAJOR}.${OPENCC_VERSION_MINOR}
${OPENCC_ABI_VERSION}
)

# Installation
Expand Down
Loading