Skip to content

Commit

Permalink
Merge pull request #2911 from rouault/cmake_version
Browse files Browse the repository at this point in the history
CMake: align the VERSION of the library with libtool practices
  • Loading branch information
rouault authored Oct 23, 2021
2 parents 9aed9e0 + 5a47650 commit 9817fe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,13 @@ message(STATUS "Configuring PROJ:")
################################################################################
include(ProjVersion)
proj_version(MAJOR 8 MINOR 2 PATCH 0)
set(PROJ_API_VERSION "22")
set(PROJ_BUILD_VERSION "23.0.1")
# Use libtool convention to build the CMake's VERSION and SOVERSION
# See https://github.com/pvanhoof/dir-examples#cmake-in-the-cmake-example
set(PROJ_LIBTOOL_CURRENT 23)
set(PROJ_LIBTOOL_REVISION 0)
set(PROJ_LIBTOOL_AGE 1)
math(EXPR PROJ_API_VERSION "${PROJ_LIBTOOL_CURRENT} - ${PROJ_LIBTOOL_AGE}")
set(PROJ_BUILD_VERSION "${PROJ_API_VERSION}.${PROJ_LIBTOOL_AGE}.${PROJ_LIBTOOL_REVISION}")

################################################################################
# Build features and variants
Expand Down
3 changes: 1 addition & 2 deletions HOWTO-RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ the steps below to determine the next ABI version number:
Update the following files with the new ABI version number:

- `src/Makefile.am` Update -version-info
- `CMakeLists.txt`: Update PROJ_BUILD_VERSION (cur:rev:age) and
PROJ_API_VERSION (current-age)
- `CMakeLists.txt`: Update PROJ_LIBTOOL_CURRENT, PROJ_LIBTOOL_REVISON and PROJ_LIBTOOL_AGE

*Commit the changes to master.*

Expand Down

0 comments on commit 9817fe7

Please sign in to comment.