Skip to content

Commit

Permalink
update SO versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Jul 4, 2019
1 parent 2d63975 commit 431ef56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ if(ARROW_VERSION_MAJOR STREQUAL ""
endif()

# The SO version is also the ABI version
if(arrow_VERSION_MAJOR STREQUAL "0")
if(ARROW_VERSION_MAJOR STREQUAL "0")
# Arrow 0.x.y => SO version is "x", full SO version is "x.y.0"
set(ARROW_SO_VERSION "${ARROW_VERSION_MINOR}")
set(ARROW_FULL_SO_VERSION "${ARROW_SO_VERSION}.${ARROW_VERSION_PATCH}.0")
else()
message(FATAL_ERROR "Need to implement SO version generation for Arrow 1.0+")
# Arrow 1.x.y => SO version is "10x", full SO version is "x.y.0"
MATH(EXPR ARROW_SO_VERSION "${ARROW_VERSION_MAJOR} * 100 + ${ARROW_VERSION_MINOR}")
set(ARROW_FULL_SO_VERSION "${ARROW_SO_VERSION}.${ARROW_VERSION_PATCH}.0")
endif()

message(STATUS "Arrow version: "
Expand Down

0 comments on commit 431ef56

Please sign in to comment.